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

Returns the value of notification_type, or the default value if notification_type is unset.

Returns the value of timestamp, or the default value if timestamp is unset.

Returns the value of doc_title, or the default value if doc_title is unset.

Returns the value of user_email, or the default value if user_email is unset.

Returns the value of notification_id, or the default value if notification_id is unset.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Returns the encoded length of the message without a length delimiter.

Clears the message, resetting all fields to their default.

Encodes the message to a buffer. Read more

Encodes the message to a newly allocated buffer.

Encodes the message with a length-delimiter to a buffer. Read more

Encodes the message with a length-delimiter to a newly allocated buffer.

Decodes an instance of the message from a buffer. Read more

Decodes a length-delimited instance of the message from the buffer.

Decodes an instance of the message from a buffer, and merges it into self. Read more

Decodes a length-delimited instance of the message from buffer, and merges it into self. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.