pub struct WebpushConfig {
pub headers: HashMap<String, String>,
pub data: HashMap<String, String>,
pub notification: Option<WebpushNotification>,
}Expand description
Web Push-specific delivery options for a Message.
Fields§
§headers: HashMap<String, String>Raw Web Push protocol headers, e.g. Urgency, TTL.
data: HashMap<String, String>Custom key-value payload delivered to the Web Push client, merged
with (and taking precedence over) Message::data.
notification: Option<WebpushNotification>A display notification shown by the browser, using the Web
Notifications API shape rather than Notification’s simplified
title/body/image.
Trait Implementations§
Source§impl Clone for WebpushConfig
impl Clone for WebpushConfig
Source§fn clone(&self) -> WebpushConfig
fn clone(&self) -> WebpushConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 WebpushConfig
impl Debug for WebpushConfig
Source§impl Default for WebpushConfig
impl Default for WebpushConfig
Source§fn default() -> WebpushConfig
fn default() -> WebpushConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for WebpushConfig
impl RefUnwindSafe for WebpushConfig
impl Send for WebpushConfig
impl Sync for WebpushConfig
impl Unpin for WebpushConfig
impl UnsafeUnpin for WebpushConfig
impl UnwindSafe for WebpushConfig
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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