pub struct WebpushConfig {
pub data: Option<HashMap<String, String>>,
pub fcm_options: Option<WebpushFcmOptions>,
pub headers: Option<HashMap<String, String>>,
pub notification: Option<HashMap<String, Value>>,
}Expand description
Webpush protocol options.
This type is not used in any activity, and only used as part of another schema.
Fields§
§data: Option<HashMap<String, String>>Arbitrary key/value payload. If present, it will override google.firebase.fcm.v1.Message.data.
fcm_options: Option<WebpushFcmOptions>Options for features provided by the FCM SDK for Web.
headers: Option<HashMap<String, String>>HTTP headers defined in webpush protocol. Refer to Webpush protocol for supported headers, e.g. “TTL”: “15”.
notification: Option<HashMap<String, Value>>Web Notification options as a JSON object. Supports Notification instance properties as defined in Web Notification API. If present, “title” and “body” fields override [google.firebase.fcm.v1.Notification.title] and [google.firebase.fcm.v1.Notification.body].
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 · 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
Source§impl<'de> Deserialize<'de> for WebpushConfig
impl<'de> Deserialize<'de> for WebpushConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for WebpushConfig
impl Serialize for WebpushConfig
impl Part for WebpushConfig
Auto Trait Implementations§
impl Freeze for WebpushConfig
impl RefUnwindSafe for WebpushConfig
impl Send for WebpushConfig
impl Sync for WebpushConfig
impl Unpin for WebpushConfig
impl UnwindSafe for WebpushConfig
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