Crate initiative_core

Source
Expand description

This crate forms the core of the initiative.sh application. It is a common dependency of the initiative_web crate containing the web version of the app, and the initiative_cli crate containing the (incomplete) terminal version.

It communicates to the outside world through the app::App struct, which exposes essentially the entirety of the crate’s public API (constructed using the app() function). See the documentation of these two entities for details on that API.

Re-exportsΒ§

pub use crate::app::App;
pub use crate::app::Event;

ModulesΒ§

app
command πŸ”’
reference πŸ”’
storage πŸ”’
time πŸ”’
utils πŸ”’
world πŸ”’

StructsΒ§

BackupData
MemoryDataStore
NullDataStore
Thing
Uuid
A Universally Unique Identifier (UUID).

TraitsΒ§

DataStore

FunctionsΒ§

app
Creates a new instance of the application wrapper. The data_store is used to save and load data from storage, and the event_dispatcher is a callback function invoked whenever an event occurs in-app that may require special handling by the UI. See Event for details.