Struct cargo_update::ConfigOptions
source · pub struct ConfigOptions {
pub crates_file: (String, PathBuf),
pub package: String,
pub ops: Vec<ConfigOperation>,
}
Expand description
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
Implementations
sourceimpl ConfigOptions
impl ConfigOptions
sourcepub fn parse() -> ConfigOptions
pub fn parse() -> ConfigOptions
Parse env
-wide command-line arguments into a ConfigOptions
instance
Trait Implementations
sourceimpl Clone for ConfigOptions
impl Clone for ConfigOptions
sourcefn clone(&self) -> ConfigOptions
fn clone(&self) -> ConfigOptions
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for ConfigOptions
impl Debug for ConfigOptions
sourceimpl Hash for ConfigOptions
impl Hash for ConfigOptions
sourceimpl PartialEq<ConfigOptions> for ConfigOptions
impl PartialEq<ConfigOptions> for ConfigOptions
sourcefn eq(&self, other: &ConfigOptions) -> bool
fn eq(&self, other: &ConfigOptions) -> bool
impl Eq for ConfigOptions
impl StructuralEq for ConfigOptions
impl StructuralPartialEq for ConfigOptions
Auto Trait Implementations
impl RefUnwindSafe for ConfigOptions
impl Send for ConfigOptions
impl Sync for ConfigOptions
impl Unpin for ConfigOptions
impl UnwindSafe for ConfigOptions
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more