pub struct AlertPayload<'a> {
pub title: Option<&'a str>,
pub body: Option<&'a str>,
pub title_loc_key: Option<&'a str>,
pub title_loc_args: Option<Vec<String>>,
pub action_loc_key: Option<&'a str>,
pub loc_key: Option<&'a str>,
pub loc_args: Option<Vec<String>>,
pub loc_image: Option<&'a str>,
}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<&'a str>§body: Option<&'a str>§title_loc_key: Option<&'a str>§title_loc_args: Option<Vec<String>>§action_loc_key: Option<&'a str>§loc_key: Option<&'a str>§loc_args: Option<Vec<String>>§loc_image: Option<&'a str>Trait Implementations§
Source§impl<'a> Clone for AlertPayload<'a>
impl<'a> Clone for AlertPayload<'a>
Source§fn clone(&self) -> AlertPayload<'a>
fn clone(&self) -> AlertPayload<'a>
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<'a> Debug for AlertPayload<'a>
impl<'a> Debug for AlertPayload<'a>
Source§impl<'a> Default for AlertPayload<'a>
impl<'a> Default for AlertPayload<'a>
Source§fn default() -> AlertPayload<'a>
fn default() -> AlertPayload<'a>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'a> Freeze for AlertPayload<'a>
impl<'a> RefUnwindSafe for AlertPayload<'a>
impl<'a> Send for AlertPayload<'a>
impl<'a> Sync for AlertPayload<'a>
impl<'a> Unpin for AlertPayload<'a>
impl<'a> UnsafeUnpin for AlertPayload<'a>
impl<'a> UnwindSafe for AlertPayload<'a>
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