pub enum Commands {
Serve {
mode: Option<String>,
host: Option<String>,
port: Option<u16>,
enable_oauth: Option<bool>,
oauth_client_id: Option<String>,
oauth_client_secret: Option<String>,
oauth_redirect_uri: Option<String>,
enable_api_key: Option<bool>,
api_keys: Option<String>,
api_key_header: Option<String>,
api_key_query_param: Option<bool>,
},
GenerateApiKey {
prefix: String,
},
ListApiKeys {
config: PathBuf,
},
RevokeApiKey {
config: PathBuf,
key: String,
},
Config {
output: PathBuf,
force: bool,
},
Test {
tool: String,
crate_name: Option<String>,
item_path: Option<String>,
query: Option<String>,
sort: Option<String>,
version: Option<String>,
limit: u32,
format: String,
},
Health {
check_type: String,
verbose: bool,
},
Version,
}Expand description
Available CLI commands
Variants§
Serve
Start the server
Fields
GenerateApiKey
Generate API key for hashed storage
ListApiKeys
List API keys from configuration file
RevokeApiKey
Revoke an API key from configuration file
Config
Generate configuration file
Test
Test tool
Fields
Health
Check server health status
Fields
Version
Display version information
Trait Implementations§
Source§impl FromArgMatches for Commands
impl FromArgMatches for Commands
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 Commands
impl Subcommand for Commands
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 Commands
impl RefUnwindSafe for Commands
impl Send for Commands
impl Sync for Commands
impl Unpin for Commands
impl UnsafeUnpin for Commands
impl UnwindSafe for Commands
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