pub enum AgentRoleCommands {
List {
page: Option<u32>,
per_page: Option<u32>,
},
Show {
name: String,
},
SetCap {
name: String,
usd: f64,
},
ClearCap {
name: String,
},
}Expand description
Available agent role subcommands.
Variants§
List
List agent roles with the cost spent, reserved and left this period.
Show
Show the cost and cap of one agent role.
SetCap
Set the operator cap of a role (admin only). It can only lower the cap declared in code.
Fields
ClearCap
Clear the operator cap of a role (admin only): the code cap applies.
Trait Implementations§
Source§impl Debug for AgentRoleCommands
impl Debug for AgentRoleCommands
Source§impl FromArgMatches for AgentRoleCommands
impl FromArgMatches for AgentRoleCommands
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 AgentRoleCommands
impl Subcommand for AgentRoleCommands
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 AgentRoleCommands
impl RefUnwindSafe for AgentRoleCommands
impl Send for AgentRoleCommands
impl Sync for AgentRoleCommands
impl Unpin for AgentRoleCommands
impl UnsafeUnpin for AgentRoleCommands
impl UnwindSafe for AgentRoleCommands
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