Module stepflow_data::value [−][src]
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.
Every value is expected to support one of the fixed BaseValue which is used to manage persistence across the system.
Often this is done by storing the actual value internally as a BaseValue.
When needed, they can be downcast to their original type via Value::downcast and Value::is.
Examples
assert!(matches!(EmailValue::try_new("bad email"), Err(_))); assert!(matches!(EmailValue::try_new("test@stepflow.dev"), Ok(_)));
Structs
| BoolValue | |
| EmailValue | |
| StringValue | |
| TrueValue | |
| ValidVal |
Traits
| Value |