pub struct NotificationTypeNewPushMessage {
pub message_id: i64,
pub sender_id: MessageSender,
pub sender_name: String,
pub is_outgoing: bool,
pub content: PushMessageContent,
}
Expand description
New message was received through a push notification
Fields§
§message_id: i64
The message identifier. The message will not be available in the chat history, but the identifier can be used in viewMessages, or as a message to be replied in the same chat
sender_id: MessageSender
Identifier of the sender of the message. Corresponding user or chat may be inaccessible
sender_name: String
Name of the sender
is_outgoing: bool
True, if the message is outgoing
content: PushMessageContent
Push message content
Trait Implementations§
Source§impl Clone for NotificationTypeNewPushMessage
impl Clone for NotificationTypeNewPushMessage
Source§fn clone(&self) -> NotificationTypeNewPushMessage
fn clone(&self) -> NotificationTypeNewPushMessage
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<'de> Deserialize<'de> for NotificationTypeNewPushMessage
impl<'de> Deserialize<'de> for NotificationTypeNewPushMessage
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 PartialEq for NotificationTypeNewPushMessage
impl PartialEq for NotificationTypeNewPushMessage
Source§fn eq(&self, other: &NotificationTypeNewPushMessage) -> bool
fn eq(&self, other: &NotificationTypeNewPushMessage) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for NotificationTypeNewPushMessage
Auto Trait Implementations§
impl Freeze for NotificationTypeNewPushMessage
impl RefUnwindSafe for NotificationTypeNewPushMessage
impl Send for NotificationTypeNewPushMessage
impl Sync for NotificationTypeNewPushMessage
impl Unpin for NotificationTypeNewPushMessage
impl UnwindSafe for NotificationTypeNewPushMessage
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