pub struct UpdateNewMessage {
pub message: Message,
pub disable_notification: bool,
pub contains_mention: bool,
}
Expand description
A new message was received; can also be an outgoing message
Fields§
§message: Message
The new message
disable_notification: bool
True, if this message must not generate a notification
contains_mention: bool
True, if the message contains a mention of the current user
Trait Implementations§
Source§impl Clone for UpdateNewMessage
impl Clone for UpdateNewMessage
Source§fn clone(&self) -> UpdateNewMessage
fn clone(&self) -> UpdateNewMessage
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 UpdateNewMessage
impl Debug for UpdateNewMessage
Source§impl<'de> Deserialize<'de> for UpdateNewMessage
impl<'de> Deserialize<'de> for UpdateNewMessage
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 UpdateNewMessage
impl RefUnwindSafe for UpdateNewMessage
impl Send for UpdateNewMessage
impl Sync for UpdateNewMessage
impl Unpin for UpdateNewMessage
impl UnwindSafe for UpdateNewMessage
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