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
Value
s store data within StepFlow. They can support high-level types such asEmailValue
by validating values on creation, typically with a<YourValue>::try_new
constructor.- var
Var
s are placeholders forValue
s. They can be used to define what values are needed later without creating the value.
Structs§
- Invalid
Vars - State
Data - Store a set of
Var
s and correspondingValue
s. - State
Data Filtered - Wrapper to a
StateData
that 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