pub struct State<T: Display> {
pub events: Vec<String>,
pub message: Message<T>,
pub metadata: Value,
pub timestamp: i64,
}
Expand description
Implement the standard structure of a state
Fields§
§events: Vec<String>
§message: Message<T>
§metadata: Value
§timestamp: i64
Implementations§
Trait Implementations§
Source§impl<'de, T> Deserialize<'de> for State<T>where
T: Deserialize<'de> + Display,
impl<'de, T> Deserialize<'de> for State<T>where
T: Deserialize<'de> + Display,
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
impl<T: Eq + Display> Eq for State<T>
impl<T: Display> StructuralPartialEq for State<T>
Auto Trait Implementations§
impl<T> Freeze for State<T>
impl<T> RefUnwindSafe for State<T>where
T: RefUnwindSafe,
impl<T> Send for State<T>where
T: Send,
impl<T> Sync for State<T>where
T: Sync,
impl<T> Unpin for State<T>where
T: Unpin,
impl<T> UnwindSafe for State<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more