pub struct SubscribeEvent {
pub name: String,
pub version: u32,
}Expand description
A single event to subscribe to
Fields§
§name: StringEvent type name (e.g., “chat.message.created”)
version: u32Event version
Trait Implementations§
Source§impl Clone for SubscribeEvent
impl Clone for SubscribeEvent
Source§fn clone(&self) -> SubscribeEvent
fn clone(&self) -> SubscribeEvent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SubscribeEvent
impl Debug for SubscribeEvent
Source§impl<'de> Deserialize<'de> for SubscribeEvent
impl<'de> Deserialize<'de> for SubscribeEvent
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
Auto Trait Implementations§
impl Freeze for SubscribeEvent
impl RefUnwindSafe for SubscribeEvent
impl Send for SubscribeEvent
impl Sync for SubscribeEvent
impl Unpin for SubscribeEvent
impl UnwindSafe for SubscribeEvent
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