pub enum AccountCommands {
Add {
name: String,
kind: String,
display_name: Option<String>,
token_stdin: bool,
tags: Vec<String>,
priority: Option<i32>,
max_concurrency: Option<i32>,
alert_threshold: Option<f64>,
plan: Option<String>,
expires_at: Option<DateTime<Utc>>,
disabled: bool,
},
List {
kind: Option<String>,
},
Show {
account: String,
},
Usage {
account: String,
},
Update {
account: String,
display_name: Option<String>,
enable: bool,
disable: bool,
tags: Vec<String>,
priority: Option<i32>,
max_concurrency: Option<i32>,
clear_max_concurrency: bool,
alert_threshold: Option<f64>,
plan: Option<String>,
token_stdin: bool,
},
Remove {
account: String,
yes: bool,
},
Test {
account: String,
},
}Expand description
ironflow accounts subcommands.
Variants§
Add
Add an account. The token is checked against the provider first.
Fields
Tag (repeatable).
List
List accounts with their current usage.
Show
Show one account and its windows.
Usage
Show the current windows of an account.
Update
Update an account. Omitted options are left unchanged.
Fields
Tag (repeatable, replaces the list).
Remove
Delete an account and its token.
Test
Check the stored token against the provider.
Trait Implementations§
Source§impl Debug for AccountCommands
impl Debug for AccountCommands
Source§impl FromArgMatches for AccountCommands
impl FromArgMatches for AccountCommands
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>
Assign values from
ArgMatches to self.Source§fn update_from_arg_matches_mut<'b>(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§impl Subcommand for AccountCommands
impl Subcommand for AccountCommands
Source§fn augment_subcommands<'b>(__clap_app: Command) -> Command
fn augment_subcommands<'b>(__clap_app: Command) -> Command
Source§fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§fn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Test whether
Self can parse a specific subcommandAuto Trait Implementations§
impl Freeze for AccountCommands
impl RefUnwindSafe for AccountCommands
impl Send for AccountCommands
impl Sync for AccountCommands
impl Unpin for AccountCommands
impl UnsafeUnpin for AccountCommands
impl UnwindSafe for AccountCommands
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