pub enum Commands {
Check {
crate_name: String,
version: Option<String>,
},
CheckMultiple {
crate_names: Vec<String>,
summary_only: bool,
fail_on_missing: bool,
},
Info {
crate_name: String,
deps: bool,
stats: bool,
},
Versions {
crate_name: String,
no_yanked: bool,
limit: Option<usize>,
},
Search {
query: String,
limit: usize,
exact: bool,
},
Deps {
crate_name: String,
version: Option<String>,
runtime_only: bool,
},
Stats {
crate_name: String,
versions: bool,
},
Batch {
json: Option<String>,
file: Option<PathBuf>,
parallel: bool,
},
Server {
port: u16,
host: String,
cors: bool,
config: Option<PathBuf>,
},
Config {
output: Option<PathBuf>,
},
Examples,
}Expand description
Available commands
Variants§
Check
Check if a crate exists
Fields
CheckMultiple
Check multiple crates at once with merged output
Fields
Info
Get detailed information about a crate
Fields
Versions
List all versions of a crate
Fields
Search
Search for crates by name or keywords
Fields
Deps
Show dependencies for a crate version
Fields
Stats
Show download statistics for a crate
Batch
Process multiple crates at once
Fields
Server
Start HTTP API server
Fields
Config
Generate sample configuration file
Examples
Show examples of JSON batch input formats
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