Struct googleplay_protobuf::googleplay::Notification
source · 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 copy 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<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
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<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
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<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Decodes an instance of the message from a buffer. Read more
source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Decodes a length-delimited instance of the message from the buffer.
source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
Decodes an instance of the message from a buffer, and merges it into
self
. Read moresource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
Decodes a length-delimited instance of the message from buffer, and
merges it into
self
.source§impl PartialEq for Notification
impl PartialEq for Notification
source§fn eq(&self, other: &Notification) -> bool
fn eq(&self, other: &Notification) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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