Struct scsys_actors::states::State
source · pub struct State<S: StatePack, T: Default = String> {
pub events: Vec<String>,
pub message: Message<T>,
pub metadata: Value,
pub state: S,
pub timestamp: i64,
}Expand description
Implement the standard structure of a state
Fields§
§events: Vec<String>§message: Message<T>§metadata: Value§state: S§timestamp: i64Implementations§
Trait Implementations§
source§impl<'de, S, T> Deserialize<'de> for State<S, T>where
S: Deserialize<'de> + StatePack,
T: Deserialize<'de> + Default,
impl<'de, S, T> Deserialize<'de> for State<S, T>where
S: Deserialize<'de> + StatePack,
T: Deserialize<'de> + Default,
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<S: PartialEq + StatePack, T: PartialEq + Default> PartialEq<State<S, T>> for State<S, T>
impl<S: PartialEq + StatePack, T: PartialEq + Default> PartialEq<State<S, T>> for State<S, T>
impl<S: Eq + StatePack, T: Eq + Default> Eq for State<S, T>
impl<S: StatePack, T: Default> StructuralEq for State<S, T>
impl<S: StatePack, T: Default> StructuralPartialEq for State<S, T>
Auto Trait Implementations§
impl<S, T> RefUnwindSafe for State<S, T>where
S: RefUnwindSafe,
T: RefUnwindSafe,
impl<S, T> Send for State<S, T>where
S: Send,
T: Send,
impl<S, T> Sync for State<S, T>where
S: Sync,
T: Sync,
impl<S, T> Unpin for State<S, T>where
S: Unpin,
T: Unpin,
impl<S, T> UnwindSafe for State<S, T>where
S: UnwindSafe,
T: UnwindSafe,
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.