pub struct WebpushConfig { /* private fields */ }Expand description
Configuration for web push notifications.
Implementations§
Source§impl WebpushConfig
impl WebpushConfig
pub fn new() -> Self
pub fn headers(&self) -> Option<&HashMap<String, String, RandomState>>
pub fn data(&self) -> Option<&HashMap<String, String, RandomState>>
pub fn set_headers(&mut self, headers: Option<HashMap<String, String>>)
pub fn set_data(&mut self, data: Option<HashMap<String, String>>)
Trait Implementations§
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
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