pub struct Install {Show 19 fields
pub common: CommonOptions,
pub version: Option<String>,
pub git: Option<String>,
pub branch: Option<String>,
pub tag: Option<String>,
pub rev: Option<String>,
pub path: Option<PathBuf>,
pub list: bool,
pub force: bool,
pub no_track: bool,
pub debug: bool,
pub root: Option<PathBuf>,
pub index: Option<String>,
pub registry: Option<String>,
pub bin: Vec<String>,
pub bins: bool,
pub example: Vec<String>,
pub examples: bool,
pub crates: Vec<String>,
}Expand description
Install a Rust binary. Default location is $HOME/.cargo/bin
Fields§
§common: CommonOptions§version: Option<String>Specify a version to install
git: Option<String>Git URL to install the specified crate from
branch: Option<String>Branch to use when installing from git
tag: Option<String>Tag to use when installing from git
rev: Option<String>Specific commit to use when installing from git
path: Option<PathBuf>Filesystem path to local crate to install
list: boollist all installed packages and their versions
force: boolForce overwriting existing crates or binaries
no_track: boolDo not save tracking information
debug: boolBuild in debug mode (with the ‘dev’ profile) instead of release mode
root: Option<PathBuf>Directory to install packages into
index: Option<String>Registry index to install from
registry: Option<String>Registry to use
bin: Vec<String>Install only the specified binary
bins: boolInstall all binaries
example: Vec<String>Install only the specified example
examples: boolInstall all examples
crates: Vec<String>Implementations§
Methods from Deref<Target = CommonOptions>§
Trait Implementations§
Source§impl Args for Install
impl Args for Install
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl CommandFactory for Install
impl CommandFactory for Install
Source§impl FromArgMatches for Install
impl FromArgMatches for Install
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(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§impl Parser for Install
impl Parser for Install
Source§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
Parse from iterator, exit on error.
Source§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
Parse from iterator, return Err on error.
Source§fn update_from<I, T>(&mut self, itr: I)
fn update_from<I, T>(&mut self, itr: I)
Auto Trait Implementations§
impl Freeze for Install
impl RefUnwindSafe for Install
impl Send for Install
impl Sync for Install
impl Unpin for Install
impl UnwindSafe for Install
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