pub struct NotificationPayload {
pub title: Option<String>,
pub body: Option<String>,
pub image: Option<String>,
pub icon: Option<String>,
}Expand description
Payload displayed to the user when a notification is shown.
Fields§
§title: Option<String>§body: Option<String>§image: Option<String>§icon: Option<String>Trait Implementations§
Source§impl Clone for NotificationPayload
impl Clone for NotificationPayload
Source§fn clone(&self) -> NotificationPayload
fn clone(&self) -> NotificationPayload
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 NotificationPayload
impl Debug for NotificationPayload
Source§impl Default for NotificationPayload
impl Default for NotificationPayload
Source§fn default() -> NotificationPayload
fn default() -> NotificationPayload
Returns the “default value” for a type. Read more
Source§impl PartialEq for NotificationPayload
impl PartialEq for NotificationPayload
impl Eq for NotificationPayload
impl StructuralPartialEq for NotificationPayload
Auto Trait Implementations§
impl Freeze for NotificationPayload
impl RefUnwindSafe for NotificationPayload
impl Send for NotificationPayload
impl Sync for NotificationPayload
impl Unpin for NotificationPayload
impl UnwindSafe for NotificationPayload
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.