Struct googleplay_protobuf::googleplay::Notification
source · [−]pub struct Notification {Show 14 fields
pub notification_type: Option<i32>,
pub timestamp: Option<i64>,
pub docid: 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>
docid: 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
sourceimpl 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
sourceimpl Clone for Notification
impl Clone for Notification
sourcefn clone(&self) -> Notification
fn clone(&self) -> Notification
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for Notification
impl Debug for Notification
sourceimpl Default for Notification
impl Default for Notification
sourceimpl Message for Notification
impl Message for Notification
sourcefn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
sourcefn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError> where
B: BufMut,
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError> where
B: BufMut,
Encodes the message to a buffer. Read more
sourcefn encode_to_vec(&self) -> Vec<u8, Global>
fn encode_to_vec(&self) -> Vec<u8, Global>
Encodes the message to a newly allocated buffer.
sourcefn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError> where
B: BufMut,
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError> where
B: BufMut,
Encodes the message with a length-delimiter to a buffer. Read more
sourcefn encode_length_delimited_to_vec(&self) -> Vec<u8, Global>
fn encode_length_delimited_to_vec(&self) -> Vec<u8, Global>
Encodes the message with a length-delimiter to a newly allocated buffer.
sourcefn decode<B>(buf: B) -> Result<Self, DecodeError> where
B: Buf,
Self: Default,
fn decode<B>(buf: B) -> Result<Self, DecodeError> where
B: Buf,
Self: Default,
Decodes an instance of the message from a buffer. Read more
sourcefn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError> where
B: Buf,
Self: Default,
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError> where
B: Buf,
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
sourcefn merge<B>(&mut self, buf: B) -> Result<(), DecodeError> where
B: Buf,
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError> where
B: Buf,
Decodes an instance of the message from a buffer, and merges it into self
. Read more
sourcefn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError> where
B: Buf,
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError> where
B: Buf,
Decodes a length-delimited instance of the message from buffer, and
merges it into self
. Read more
sourceimpl PartialEq<Notification> for Notification
impl PartialEq<Notification> for Notification
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &Notification) -> bool
fn ne(&self, other: &Notification) -> bool
This method tests for !=
.
impl StructuralPartialEq for Notification
Auto Trait Implementations
impl RefUnwindSafe for Notification
impl Send for Notification
impl Sync for Notification
impl Unpin for Notification
impl UnwindSafe for Notification
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more