pub enum AppCommands {
Create {
name: String,
default_db: String,
allowed_dbs: String,
max_users: u32,
storage_quota: u32,
max_connections: u32,
qps_limit: u32,
},
List {
status: Option<String>,
page: u32,
page_size: u32,
},
Show {
app_id: String,
},
Update {
app_id: String,
name: Option<String>,
default_db: Option<String>,
allowed_dbs: Option<String>,
max_users: Option<u32>,
storage_quota: Option<u32>,
max_connections: Option<u32>,
qps_limit: Option<u32>,
},
Enable {
app_id: String,
},
Disable {
app_id: String,
},
Delete {
app_id: String,
force: bool,
},
ResetToken {
app_id: String,
},
Stats {
app_id: String,
},
}Variants§
Create
Create a new application
Fields
List
List applications
Show
Show application details
Update
Update application settings
Fields
Enable
Enable an application
Disable
Disable an application
Delete
Delete an application
ResetToken
Reset application token
Stats
Show application statistics
Trait Implementations§
Source§impl Clone for AppCommands
impl Clone for AppCommands
Source§fn clone(&self) -> AppCommands
fn clone(&self) -> AppCommands
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 AppCommands
impl Debug for AppCommands
Source§impl FromArgMatches for AppCommands
impl FromArgMatches for AppCommands
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 AppCommands
impl Subcommand for AppCommands
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 AppCommands
impl RefUnwindSafe for AppCommands
impl Send for AppCommands
impl Sync for AppCommands
impl Unpin for AppCommands
impl UnsafeUnpin for AppCommands
impl UnwindSafe for AppCommands
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