Struct cargo_update::ConfigOptions
[−]
[src]
pub struct ConfigOptions { pub crates_file: (String, PathBuf), pub package: String, pub ops: Vec<ConfigOperation>, }
Representation of the config application's all configurable values.
Fields
crates_file: (String, PathBuf)
The config
file in the cargo
home directory.
Default: in "$CARGO_INSTALL_ROOT"
, then "$CARGO_HOME"
, then "$HOME/.cargo"
package: String
Crate to modify config for
ops: Vec<ConfigOperation>
What to do to the config, or display with empty
Methods
impl ConfigOptions
[src]
fn parse() -> ConfigOptions
Parse env
-wide command-line arguments into a ConfigOptions
instance
Trait Implementations
impl Debug for ConfigOptions
[src]
impl Clone for ConfigOptions
[src]
fn clone(&self) -> ConfigOptions
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Hash for ConfigOptions
[src]
fn hash<__H: Hasher>(&self, __arg_0: &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
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl PartialEq for ConfigOptions
[src]
fn eq(&self, __arg_0: &ConfigOptions) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &ConfigOptions) -> bool
This method tests for !=
.