pub struct PushNotificationContent {
pub title: String,
pub body: String,
pub number_match: Option<String>,
pub data: HashMap<String, String>,
}Expand description
Push notification content (what user sees)
Fields§
§title: StringTitle
body: StringBody
number_match: Option<String>Number matching code (if enabled)
data: HashMap<String, String>Additional data
Implementations§
Source§impl PushNotificationContent
impl PushNotificationContent
Sourcepub fn from_challenge(challenge: &PushChallenge) -> Self
pub fn from_challenge(challenge: &PushChallenge) -> Self
Create content from challenge
Trait Implementations§
Source§impl Clone for PushNotificationContent
impl Clone for PushNotificationContent
Source§fn clone(&self) -> PushNotificationContent
fn clone(&self) -> PushNotificationContent
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 PushNotificationContent
impl Debug for PushNotificationContent
Source§impl<'de> Deserialize<'de> for PushNotificationContent
impl<'de> Deserialize<'de> for PushNotificationContent
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 PushNotificationContent
impl RefUnwindSafe for PushNotificationContent
impl Send for PushNotificationContent
impl Sync for PushNotificationContent
impl Unpin for PushNotificationContent
impl UnsafeUnpin for PushNotificationContent
impl UnwindSafe for PushNotificationContent
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