pub struct SendArgs {
pub transport: Transport,
pub recipient: String,
pub title: String,
pub body: String,
pub data: Option<String>,
pub url: Option<String>,
pub ttl: Option<u64>,
pub priority: PriorityArg,
pub silent: bool,
}Expand description
The command line of fz push send, before anything is parsed.
Fields§
§transport: TransportWhich transport to send over; also how recipient is read.
recipient: StringAn APNs device token, an FCM registration token, or a Web Push subscription JSON.
title: StringThe notification’s title.
body: StringThe notification’s body.
data: Option<String>Custom JSON payload the app reads.
url: Option<String>Where a tap should take the user.
ttl: Option<u64>How long the push service may hold the notification, in seconds.
priority: PriorityArgDelivery priority.
silent: boolA data-only notification: nothing is shown, the app is woken.
Auto Trait Implementations§
impl Freeze for SendArgs
impl RefUnwindSafe for SendArgs
impl Send for SendArgs
impl Sync for SendArgs
impl Unpin for SendArgs
impl UnsafeUnpin for SendArgs
impl UnwindSafe for SendArgs
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