Struct cargo_update::Options
[−]
[src]
pub struct Options {
pub to_update: Vec<(String, Option<Semver>)>,
pub update: bool,
pub install: bool,
pub force: bool,
pub update_git: bool,
pub crates_file: (String, PathBuf),
pub cargo_dir: (String, PathBuf),
pub temp_dir: (String, PathBuf),
}Representation of the application's all configurable values.
Fields
to_update: Vec<(String, Option<Semver>)>
Packages to update. Default: None
If empty - update all.
update: bool
Whether to update packages or just list them. Default: true
install: bool
Whether to allow for just installing packages. Default: false
force: bool
Update all packages. Default: false
update_git: bool
Update git packages too (it's expensive). Default: false
crates_file: (String, PathBuf)
The .crates.toml file in the cargo home directory.
Default: in "$CARGO_INSTALL_ROOT", then "$CARGO_HOME", then "$HOME/.cargo"
cargo_dir: (String, PathBuf)
The cargo home directory. Default: "$CARGO_HOME", then "$HOME/.cargo"
temp_dir: (String, PathBuf)
The temporary directory to clone git repositories to. Default: "$TEMP/cargo-update"
Methods
impl Options[src]
Trait Implementations
impl Debug for Options[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more
impl Clone for Options[src]
fn clone(&self) -> Options[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl Hash for Options[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)[src]
Feeds this value into the given [Hasher]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher]. Read more
impl PartialEq for Options[src]
fn eq(&self, __arg_0: &Options) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &Options) -> bool[src]
This method tests for !=.