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 filter: Vec<PackageFilterElement>, 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
filter: Vec<PackageFilterElement>
Update all packages. Default: empty
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]
impl Options
Trait Implementations
impl Debug for Options
[src]
impl Debug for Options
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for Options
[src]
impl Clone for Options
fn clone(&self) -> Options
[src]
fn clone(&self) -> Options
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Hash for Options
[src]
impl Hash for Options
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
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]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl PartialEq for Options
[src]
impl PartialEq for Options
fn eq(&self, other: &Options) -> bool
[src]
fn eq(&self, other: &Options) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Options) -> bool
[src]
fn ne(&self, other: &Options) -> bool
This method tests for !=
.
impl Eq for Options
[src]
impl Eq for Options