pub enum SystemMessage {
Text {
content: String,
},
UserAdded {
id: UserId,
by: UserId,
},
UserRemove {
id: UserId,
by: UserId,
},
UserJoined {
id: UserId,
},
UserLeft {
id: UserId,
},
UserKicked {
id: UserId,
},
UserBanned {
id: UserId,
},
ChannelRenamed {
name: String,
by: UserId,
},
ChannelDescriptionChanged {
by: UserId,
},
ChannelIconChanged {
by: UserId,
},
}Variants§
Text
UserAdded
UserRemove
UserJoined
UserLeft
UserKicked
UserBanned
ChannelRenamed
ChannelDescriptionChanged
ChannelIconChanged
Trait Implementations§
Source§impl Clone for SystemMessage
impl Clone for SystemMessage
Source§fn clone(&self) -> SystemMessage
fn clone(&self) -> SystemMessage
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 SystemMessage
impl Debug for SystemMessage
Source§impl<'de> Deserialize<'de> for SystemMessage
impl<'de> Deserialize<'de> for SystemMessage
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 Hash for SystemMessage
impl Hash for SystemMessage
Source§impl Ord for SystemMessage
impl Ord for SystemMessage
Source§fn cmp(&self, other: &SystemMessage) -> Ordering
fn cmp(&self, other: &SystemMessage) -> Ordering
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 PartialEq for SystemMessage
impl PartialEq for SystemMessage
Source§impl PartialOrd for SystemMessage
impl PartialOrd for SystemMessage
Source§impl Serialize for SystemMessage
impl Serialize for SystemMessage
impl Eq for SystemMessage
impl StructuralPartialEq for SystemMessage
Auto Trait Implementations§
impl Freeze for SystemMessage
impl RefUnwindSafe for SystemMessage
impl Send for SystemMessage
impl Sync for SystemMessage
impl Unpin for SystemMessage
impl UnwindSafe for SystemMessage
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