pub enum SclEvent<T: SclObject> {
Created(T),
Updated(T),
Deleted(T),
Info(String),
}Expand description
Common event classification
Variants§
Created(T)
A new SclObject has been created. The payload will contain the new object data.
Updated(T)
An SclObject has been updated. The payload will contain the new object state.
Deleted(T)
An SclObject has been deleted. The payload will contain the last version of the object.
Info(String)
Non SclObject related general information. The payload contains an informative message.
Trait Implementations§
Source§impl<'de, T> Deserialize<'de> for SclEvent<T>
impl<'de, T> Deserialize<'de> for SclEvent<T>
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<T: Ord + SclObject> Ord for SclEvent<T>
impl<T: Ord + SclObject> Ord for SclEvent<T>
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<T: PartialOrd + SclObject> PartialOrd for SclEvent<T>
impl<T: PartialOrd + SclObject> PartialOrd for SclEvent<T>
impl<T: Eq + SclObject> Eq for SclEvent<T>
impl<T: SclObject> StructuralPartialEq for SclEvent<T>
Auto Trait Implementations§
impl<T> Freeze for SclEvent<T>where
T: Freeze,
impl<T> RefUnwindSafe for SclEvent<T>where
T: RefUnwindSafe,
impl<T> Send for SclEvent<T>where
T: Send,
impl<T> Sync for SclEvent<T>where
T: Sync,
impl<T> Unpin for SclEvent<T>where
T: Unpin,
impl<T> UnwindSafe for SclEvent<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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.