pub struct Cli {Show 29 fields
pub ca_pem_file: Option<PathBuf>,
pub client_pem_file: Option<PathBuf>,
pub key_id: Option<String>,
pub key_pem_file: Option<String>,
pub team_id: Option<String>,
pub endpoint: Option<Endpoint>,
pub user_agent: Option<String>,
pub device_token: String,
pub push_type: PushType,
pub id: Option<Uuid>,
pub expiration: Option<OffsetDateTime>,
pub priority: Priority,
pub topic: Option<String>,
pub collapse_id: Option<String>,
pub title: Option<String>,
pub subtitle: Option<String>,
pub body: Option<String>,
pub launch_image: Option<String>,
pub badge: Option<u32>,
pub sound: Option<String>,
pub volume: Option<f64>,
pub thread_id: Option<String>,
pub category: Option<String>,
pub content_available: bool,
pub mutable_content: bool,
pub target_content_id: Option<String>,
pub interruption_level: Option<InterruptionLevel>,
pub relevance_score: Option<f64>,
pub user_info: Option<Value>,
}Expand description
Apple APNS
Fields§
§ca_pem_file: Option<PathBuf>§client_pem_file: Option<PathBuf>§key_id: Option<String>§key_pem_file: Option<String>§team_id: Option<String>§endpoint: Option<Endpoint>§user_agent: Option<String>§device_token: StringThe hex-encoded device token.
push_type: PushTypeThe push type of the notification to send.
id: Option<Uuid>A canonical UUID that is the unique ID for the notification.
expiration: Option<OffsetDateTime>The date at which the notification is no longer valid.
priority: PriorityThe priority of the notification.
topic: Option<String>The topic for the notification, e.g. bundle ID or app ID.
collapse_id: Option<String>An identifier you use to coalesce multiple notifications into a single notification for the user.
title: Option<String>The title of the notification.
subtitle: Option<String>Additional information that explains the purpose of the notification.
body: Option<String>The content of the alert message.
launch_image: Option<String>The name of the launch image file to display.
badge: Option<u32>The number to display in a badge on your app’s icon. Specify 0 to
remove the current badge, if any.
sound: Option<String>The name of a sound file in your app’s main bundle or in the
Library/Sounds folder of your app’s container directory.
volume: Option<f64>The volume for the critical alert’s sound. Set this to a value
between 0 (silent) and 1 (full volume).
thread_id: Option<String>An app-specific identifier for grouping related notifications.
category: Option<String>The notification’s type.
content_available: boolThe background notification flag.
mutable_content: boolThe notification service app extension flag.
target_content_id: Option<String>The identifier of the window brought forward.
interruption_level: Option<InterruptionLevel>The importance and delivery timing of a notification.
relevance_score: Option<f64>The relevance score, a number between 0 and 1.
user_info: Option<Value>Additional data to send.
Trait Implementations§
Source§impl Args for Cli
impl Args for Cli
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl CommandFactory for Cli
impl CommandFactory for Cli
Source§impl FromArgMatches for Cli
impl FromArgMatches for Cli
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.