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: PathBufThe cargo home directory. Default: "$CARGO_INSTALL_ROOT", then "$CARGO_HOME", then "$HOME/.cargo"
package: StringCrate 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 duplicate 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
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.