pub trait State:
Clone
+ Serialize
+ DeserializeOwned
+ Send
+ Sync
+ 'static { }Expand description
What an aggregate’s state must be: copied, and stored as JSON in snapshots. Every type that
is Clone + Serialize + DeserializeOwned + Send + Sync + 'static is one, typically a struct
with #[derive(Clone, Default, Serialize, Deserialize)].
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".