pub struct AlertPayload {
pub title: Option<String>,
pub body: Option<String>,
pub title_loc_key: Option<String>,
pub title_loc_args: Option<Vec<String>>,
pub action_loc_key: Option<String>,
pub loc_key: Option<String>,
pub loc_args: Option<Vec<String>>,
pub loc_image: Option<String>,
}Expand description
Alert content for a notification.
See the official documentation for details: https://developer.apple.com/library/content/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/PayloadKeyReference.html
Fields§
§title: Option<String>§body: Option<String>§title_loc_key: Option<String>§title_loc_args: Option<Vec<String>>§action_loc_key: Option<String>§loc_key: Option<String>§loc_args: Option<Vec<String>>§loc_image: Option<String>Trait Implementations§
Source§impl Clone for AlertPayload
impl Clone for AlertPayload
Source§fn clone(&self) -> AlertPayload
fn clone(&self) -> AlertPayload
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 AlertPayload
impl Debug for AlertPayload
Source§impl Default for AlertPayload
impl Default for AlertPayload
Source§fn default() -> AlertPayload
fn default() -> AlertPayload
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AlertPayload
impl<'de> Deserialize<'de> for AlertPayload
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 AlertPayload
impl RefUnwindSafe for AlertPayload
impl Send for AlertPayload
impl Sync for AlertPayload
impl Unpin for AlertPayload
impl UnwindSafe for AlertPayload
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