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]
impl ConfigOptions
pub fn parse() -> ConfigOptions
[src]
pub fn parse() -> ConfigOptions
Parse env
-wide command-line arguments into a ConfigOptions
instance
Trait Implementations
impl Debug for ConfigOptions
[src]
impl Debug for ConfigOptions
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 ConfigOptions
[src]
impl Clone for ConfigOptions
fn clone(&self) -> ConfigOptions
[src]
fn clone(&self) -> ConfigOptions
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)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Hash for ConfigOptions
[src]
impl Hash for ConfigOptions
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,
1.3.0
[src]Feeds a slice of this type into the given [Hasher
]. Read more
impl PartialEq for ConfigOptions
[src]
impl PartialEq for ConfigOptions
fn eq(&self, other: &ConfigOptions) -> bool
[src]
fn eq(&self, other: &ConfigOptions) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &ConfigOptions) -> bool
[src]
fn ne(&self, other: &ConfigOptions) -> bool
This method tests for !=
.
impl Eq for ConfigOptions
[src]
impl Eq for ConfigOptions
Auto Trait Implementations
impl Send for ConfigOptions
impl Send for ConfigOptions
impl Sync for ConfigOptions
impl Sync for ConfigOptions