pub struct ApnsConfig { /* private fields */ }Expand description
Configuration for Apple Push Notification Service (APNs).
Implementations§
Source§impl ApnsConfig
impl ApnsConfig
pub fn new() -> Self
pub fn headers(&self) -> Option<&HashMap<String, String, RandomState>>
pub fn payload(&self) -> Option<&HashMap<String, Value, RandomState>>
pub fn set_headers(&mut self, headers: Option<HashMap<String, String>>)
pub fn set_payload(&mut self, payload: Option<HashMap<String, Value>>)
Trait Implementations§
Source§impl Clone for ApnsConfig
impl Clone for ApnsConfig
Source§fn clone(&self) -> ApnsConfig
fn clone(&self) -> ApnsConfig
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 ApnsConfig
impl Debug for ApnsConfig
Source§impl Default for ApnsConfig
impl Default for ApnsConfig
Source§fn default() -> ApnsConfig
fn default() -> ApnsConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ApnsConfig
impl<'de> Deserialize<'de> for ApnsConfig
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 ApnsConfig
impl RefUnwindSafe for ApnsConfig
impl Send for ApnsConfig
impl Sync for ApnsConfig
impl Unpin for ApnsConfig
impl UnwindSafe for ApnsConfig
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