pub struct ApsAlertDictionary {
pub title: Option<String>,
pub subtitle: Option<String>,
pub body: Option<String>,
pub loc_key: Option<String>,
pub loc_args: Option<Vec<String>>,
pub title_loc_key: Option<String>,
pub title_loc_args: Option<Vec<String>>,
pub subtitle_loc_key: Option<String>,
pub subtitle_loc_args: Option<Vec<String>>,
pub action_loc_key: Option<String>,
pub launch_image: Option<String>,
}Expand description
An alert dictionary.
Fields§
§title: Option<String>The title of the notification.
subtitle: Option<String>The subtitle of the notification.
body: Option<String>The body text of the notification.
loc_key: Option<String>The key to the body string in the app’s Localizable.strings file.
loc_args: Option<Vec<String>>Variable string values to appear in place of the format specifiers in loc_key.
title_loc_key: Option<String>The key to the title string in the app’s Localizable.strings file.
title_loc_args: Option<Vec<String>>Variable string values to appear in place of the format specifiers in title_loc_key.
subtitle_loc_key: Option<String>The key to the subtitle string in the app’s Localizable.strings file.
subtitle_loc_args: Option<Vec<String>>Variable string values to appear in place of the format specifiers in subtitle_loc_key.
action_loc_key: Option<String>The key to the label of the action button.
launch_image: Option<String>The filename of an image file in the app bundle.
Trait Implementations§
Source§impl Clone for ApsAlertDictionary
impl Clone for ApsAlertDictionary
Source§fn clone(&self) -> ApsAlertDictionary
fn clone(&self) -> ApsAlertDictionary
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 ApsAlertDictionary
impl Debug for ApsAlertDictionary
Source§impl Default for ApsAlertDictionary
impl Default for ApsAlertDictionary
Source§fn default() -> ApsAlertDictionary
fn default() -> ApsAlertDictionary
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ApsAlertDictionary
impl<'de> Deserialize<'de> for ApsAlertDictionary
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 ApsAlertDictionary
impl RefUnwindSafe for ApsAlertDictionary
impl Send for ApsAlertDictionary
impl Sync for ApsAlertDictionary
impl Unpin for ApsAlertDictionary
impl UnwindSafe for ApsAlertDictionary
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