[][src]Enum cargo_update::ops::ConfigOperation

pub enum ConfigOperation {
    SetToolchain(String),
    RemoveToolchain,
    DefaultFeatures(bool),
    AddFeature(String),
    RemoveFeature(String),
    SetDebugMode(bool),
    SetInstallPrereleases(bool),
    SetTargetVersion(VersionReq),
    RemoveTargetVersion,
}

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.

SetTargetVersion(VersionReq)

Constrain the installed to the specified one.

RemoveTargetVersion

Always install latest package version.

Trait Implementations

impl Clone for ConfigOperation[src]

impl Debug for ConfigOperation[src]

impl Eq for ConfigOperation[src]

impl Hash for ConfigOperation[src]

impl Ord for ConfigOperation[src]

impl PartialEq<ConfigOperation> for ConfigOperation[src]

impl PartialOrd<ConfigOperation> for ConfigOperation[src]

impl StructuralEq for ConfigOperation[src]

impl StructuralPartialEq for ConfigOperation[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = !

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.