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]
pub fn parse() -> ConfigOptions[src]
Parse env-wide command-line arguments into a ConfigOptions instance
Trait Implementations
impl Debug for ConfigOptions[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more
impl Clone for ConfigOptions[src]
fn clone(&self) -> ConfigOptions[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 ConfigOptions[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 ConfigOptions[src]
fn eq(&self, __arg_0: &ConfigOptions) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &ConfigOptions) -> bool[src]
This method tests for !=.