pub struct PushAlert {
pub title: Option<String>,
pub subtitle: Option<String>,
pub body: Option<String>,
pub launch_image: Option<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 loc_key: Option<String>,
pub loc_args: Option<Vec<String>>,
}Expand description
Alert that is presented to the user.
Fields§
§title: Option<String>Title that is shown to the user.
subtitle: Option<String>Subtitle that is shown to the user.
body: Option<String>Body that is shown to the user.
launch_image: Option<String>Path to a launch image contained in the app bundle that will be shown to the user when the user opens the notification and has to wait for the application to launch.
title_loc_key: Option<String>Key of a localized string that will be used as a title in lieu of
PushAlert::title.
title_loc_args: Option<Vec<String>>Arguments that are passed to the localized title that will be shown to
the user. The number of arguments should equal the number of %@
formatters in the localized string.
subtitle_loc_key: Option<String>Key of a localized string that will be used as a subtitle in lieu of
PushAlert::subtitle.
subtitle_loc_args: Option<Vec<String>>Arguments that are passed to the localized subtitle that will be shown
to the user. The number of arguments should equal the number of %@
formatters in the localized string.
loc_key: Option<String>Key of a localized string that will be used as body in lieu of
PushAlert::body.
loc_args: Option<Vec<String>>Arguments that are passed to the localized body that will be shown to
the user. The number of arguments should equal the number of %@
formatters in the localized string.