sfn_machine/machine/data.rs
1use std::error::Error;
2
3
4/// The shared data between the steps of the state machine implements this trait.
5///
6/// The trail has as of yet of single function to serialize the struct to json
7pub trait DeserializeStateData: Sized {
8 /// A method within the trait to deserialize json from a string
9 fn from_json(json: &str) -> Result<Self, Box<dyn Error>>;
10}