Skip to main content

StateSchema

Trait StateSchema 

Source
pub trait StateSchema:
    Clone
    + Send
    + Sync
    + 'static
    + Serialize
    + for<'de> Deserialize<'de>
    + Debug {
    // Provided methods
    fn from_input(input: Self) -> Self { ... }
    fn to_json(&self) -> Value { ... }
}
Expand description

State Schema trait

Provided Methods§

Source

fn from_input(input: Self) -> Self

Create initial state from input

Source

fn to_json(&self) -> Value

Get state as JSON for debugging/checkpointing

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§