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 asEmailValueby validating values on creation, typically with a<YourValue>::try_newconstructor.- var
Vars are placeholders forValues. They can be used to define what values are needed later without creating the value.
Structs§
- Invalid
Vars - State
Data - Store a set of
Vars and correspondingValues. - State
Data Filtered - Wrapper to a
StateDatathat provides a filtered view of the data contained
Enums§
- Base
Value - The base store for
Value. All values must support storing and retrieving data as one of these types. - Invalid
Value