Enum cargo_update::ops::ConfigOperation
source · pub enum ConfigOperation {
SetToolchain(String),
RemoveToolchain,
DefaultFeatures(bool),
AddFeature(String),
RemoveFeature(String),
SetDebugMode(bool),
SetInstallPrereleases(bool),
SetEnforceLock(bool),
SetRespectBinaries(bool),
SetTargetVersion(VersionReq),
RemoveTargetVersion,
ResetConfig,
}
Expand description
A single operation to be executed upon configuration of a package.
Variants§
SetToolchain(String)
Set the toolchain to use to compile the package.
RemoveToolchain
Use the default toolchain to use to compile the package.
DefaultFeatures(bool)
Whether to compile the package with the default features.
AddFeature(String)
Compile the package with the specified feature.
RemoveFeature(String)
Remove the feature from the list of features to compile with.
SetDebugMode(bool)
Set debug mode being enabled to the specified value.
SetInstallPrereleases(bool)
Set allowing to install prereleases to the specified value.
SetEnforceLock(bool)
Set enforcing Cargo.lock to the specified value.
SetRespectBinaries(bool)
Set installing only the pre-set binaries.
SetTargetVersion(VersionReq)
Constrain the installed to the specified one.
RemoveTargetVersion
Always install latest package version.
ResetConfig
Reset configuration to default values.
Trait Implementations§
source§impl Clone for ConfigOperation
impl Clone for ConfigOperation
source§fn clone(&self) -> ConfigOperation
fn clone(&self) -> ConfigOperation
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 ConfigOperation
impl Debug for ConfigOperation
source§impl Hash for ConfigOperation
impl Hash for ConfigOperation
source§impl PartialEq<ConfigOperation> for ConfigOperation
impl PartialEq<ConfigOperation> for ConfigOperation
source§fn eq(&self, other: &ConfigOperation) -> bool
fn eq(&self, other: &ConfigOperation) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ConfigOperation
impl StructuralEq for ConfigOperation
impl StructuralPartialEq for ConfigOperation
Auto Trait Implementations§
impl RefUnwindSafe for ConfigOperation
impl Send for ConfigOperation
impl Sync for ConfigOperation
impl Unpin for ConfigOperation
impl UnwindSafe for ConfigOperation
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 Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.