Struct cargo_update::ConfigOptions
source · pub struct ConfigOptions {
pub cargo_dir: PathBuf,
pub package: String,
pub ops: Vec<ConfigOperation>,
}
Expand description
Representation of the config application’s all configurable values.
Fields§
§cargo_dir: PathBuf
The cargo
home directory. Default: "$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
Implementations§
source§impl ConfigOptions
impl ConfigOptions
sourcepub fn parse() -> ConfigOptions
pub fn parse() -> ConfigOptions
Parse env
-wide command-line arguments into a ConfigOptions
instance
Trait Implementations§
source§impl Clone for ConfigOptions
impl Clone for ConfigOptions
source§fn clone(&self) -> ConfigOptions
fn clone(&self) -> ConfigOptions
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ConfigOptions
impl Debug for ConfigOptions
source§impl Hash for ConfigOptions
impl Hash for ConfigOptions
source§impl PartialEq for ConfigOptions
impl PartialEq for ConfigOptions
source§fn eq(&self, other: &ConfigOptions) -> bool
fn eq(&self, other: &ConfigOptions) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ConfigOptions
impl StructuralPartialEq for ConfigOptions
Auto Trait Implementations§
impl Freeze for ConfigOptions
impl RefUnwindSafe for ConfigOptions
impl Send for ConfigOptions
impl Sync for ConfigOptions
impl Unpin for ConfigOptions
impl UnwindSafe for ConfigOptions
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.