pub struct Notification {Show 14 fields
pub notification_type: Option<i32>,
pub timestamp: Option<i64>,
pub doc_id: Option<DocId>,
pub doc_title: Option<String>,
pub user_email: Option<String>,
pub app_data: Option<AndroidAppNotificationData>,
pub app_delivery_data: Option<AndroidAppDeliveryData>,
pub purchase_removal_data: Option<PurchaseRemovalData>,
pub user_notification_data: Option<UserNotificationData>,
pub in_app_notification_data: Option<InAppNotificationData>,
pub purchase_declined_data: Option<PurchaseDeclinedData>,
pub notification_id: Option<String>,
pub library_update: Option<LibraryUpdate>,
pub library_dirty_data: Option<LibraryDirtyData>,
}Fields§
§notification_type: Option<i32>§timestamp: Option<i64>§doc_id: Option<DocId>§doc_title: Option<String>§user_email: Option<String>§app_data: Option<AndroidAppNotificationData>§app_delivery_data: Option<AndroidAppDeliveryData>§purchase_removal_data: Option<PurchaseRemovalData>§user_notification_data: Option<UserNotificationData>§in_app_notification_data: Option<InAppNotificationData>§purchase_declined_data: Option<PurchaseDeclinedData>§notification_id: Option<String>§library_update: Option<LibraryUpdate>§library_dirty_data: Option<LibraryDirtyData>Implementations§
Source§impl Notification
impl Notification
Sourcepub fn notification_type(&self) -> i32
pub fn notification_type(&self) -> i32
Returns the value of notification_type, or the default value if notification_type is unset.
Sourcepub fn timestamp(&self) -> i64
pub fn timestamp(&self) -> i64
Returns the value of timestamp, or the default value if timestamp is unset.
Sourcepub fn doc_title(&self) -> &str
pub fn doc_title(&self) -> &str
Returns the value of doc_title, or the default value if doc_title is unset.
Sourcepub fn user_email(&self) -> &str
pub fn user_email(&self) -> &str
Returns the value of user_email, or the default value if user_email is unset.
Sourcepub fn notification_id(&self) -> &str
pub fn notification_id(&self) -> &str
Returns the value of notification_id, or the default value if notification_id is unset.
Trait Implementations§
Source§impl Clone for Notification
impl Clone for Notification
Source§fn clone(&self) -> Notification
fn clone(&self) -> Notification
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 Notification
impl Debug for Notification
Source§impl Default for Notification
impl Default for Notification
Source§impl Message for Notification
impl Message for Notification
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes an instance of the message from a buffer, and merges it into
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.Source§impl PartialEq for Notification
impl PartialEq for Notification
impl StructuralPartialEq for Notification
Auto Trait Implementations§
impl Freeze for Notification
impl RefUnwindSafe for Notification
impl Send for Notification
impl Sync for Notification
impl Unpin for Notification
impl UnwindSafe for Notification
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