pub struct NotificationPayload<'a> {
pub token: &'a str,
pub title: &'a str,
pub body: &'a str,
pub data: Option<Value>,
}Expand description
Represents the payload for an FCM notification.
This struct is used to define the content of the notification, including the target device token, the title, the body, and optional additional data.
Fields§
§token: &'a strThe device token of the target device.
title: &'a strThe title of the notification.
body: &'a strThe body of the notification.
data: Option<Value>Optional additional data to include in the notification.
Trait Implementations§
Source§impl<'a> Debug for NotificationPayload<'a>
impl<'a> Debug for NotificationPayload<'a>
Auto Trait Implementations§
impl<'a> Freeze for NotificationPayload<'a>
impl<'a> RefUnwindSafe for NotificationPayload<'a>
impl<'a> Send for NotificationPayload<'a>
impl<'a> Sync for NotificationPayload<'a>
impl<'a> Unpin for NotificationPayload<'a>
impl<'a> UnsafeUnpin for NotificationPayload<'a>
impl<'a> UnwindSafe for NotificationPayload<'a>
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