Struct cargo_options::Install
source · 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: bool
list all installed packages and their versions
force: bool
Force overwriting existing crates or binaries
no_track: bool
Do not save tracking information
debug: bool
Build 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: bool
Install all binaries
example: Vec<String>
Install only the specified example
examples: bool
Install all examples
crates: Vec<String>
Implementations§
Methods from Deref<Target = CommonOptions>§
Trait Implementations§
source§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)
Update from iterator, exit on error
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