pub enum EventType {
Create,
Update,
Delete,
Other(String),
}Expand description
Event type from the LCU WAMP payload.
Unknown event names are preserved in EventType::Other rather than
collapsed to a single Unknown variant — useful if Riot introduces
new event types after this crate was published.
Variants§
Create
A new resource was created at the event’s URI.
Update
An existing resource’s state changed.
Delete
The resource at the URI was removed.
Other(String)
An event name this crate does not recognise; the inner string is the raw payload value verbatim.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for EventType
impl<'de> Deserialize<'de> for EventType
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl Eq for EventType
impl StructuralPartialEq for EventType
Auto Trait Implementations§
impl Freeze for EventType
impl RefUnwindSafe for EventType
impl Send for EventType
impl Sync for EventType
impl Unpin for EventType
impl UnsafeUnpin for EventType
impl UnwindSafe for EventType
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