pub struct NotificationTypeNewMessage {
pub message: Message,
pub show_preview: bool,
}
Expand description
New message was received
Fields§
§message: Message
The message
show_preview: bool
True, if message content must be displayed in notifications
Trait Implementations§
Source§impl Clone for NotificationTypeNewMessage
impl Clone for NotificationTypeNewMessage
Source§fn clone(&self) -> NotificationTypeNewMessage
fn clone(&self) -> NotificationTypeNewMessage
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 NotificationTypeNewMessage
impl Debug for NotificationTypeNewMessage
Source§impl<'de> Deserialize<'de> for NotificationTypeNewMessage
impl<'de> Deserialize<'de> for NotificationTypeNewMessage
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
impl StructuralPartialEq for NotificationTypeNewMessage
Auto Trait Implementations§
impl Freeze for NotificationTypeNewMessage
impl RefUnwindSafe for NotificationTypeNewMessage
impl Send for NotificationTypeNewMessage
impl Sync for NotificationTypeNewMessage
impl Unpin for NotificationTypeNewMessage
impl UnwindSafe for NotificationTypeNewMessage
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