Crate stepflow_data

Source
Expand description

Data layer for StepFlow

StateData is the main struct used to store data.

§Examples

// create the var/value combination
let email_var = EmailVar::new(VarId::new(0));
let email_val = EmailValue::try_new("test@stepflow.dev").unwrap();

// insert it in a StateData
let mut statedata = StateData::new();
statedata.insert(&email_var.boxed(), email_val.boxed());

Modules§

value
Values store data within StepFlow. They can support high-level types such as EmailValue by validating values on creation, typically with a <YourValue>::try_new constructor.
var
Vars are placeholders for Values. They can be used to define what values are needed later without creating the value.

Structs§

InvalidVars
StateData
Store a set of Vars and corresponding Values.
StateDataFiltered
Wrapper to a StateData that provides a filtered view of the data contained

Enums§

BaseValue
The base store for Value. All values must support storing and retrieving data as one of these types.
InvalidValue