Enum cli::types::InstallCrate
source · pub enum InstallCrate {
Enabled(bool),
Value(String),
CrateInfo(InstallCrateInfo),
RustupComponentInfo(InstallRustupComponentInfo),
CargoPluginInfo(InstallCargoPluginInfo),
}
Expand description
Install crate name or params
Variants§
Enabled(bool)
Enables to prevent installation flow
Value(String)
The value as string
CrateInfo(InstallCrateInfo)
Install crate params
RustupComponentInfo(InstallRustupComponentInfo)
Install rustup component params
CargoPluginInfo(InstallCargoPluginInfo)
Install cargo plugin info
Trait Implementations§
source§impl Clone for InstallCrate
impl Clone for InstallCrate
source§fn clone(&self) -> InstallCrate
fn clone(&self) -> InstallCrate
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 InstallCrate
impl Debug for InstallCrate
source§impl<'de> Deserialize<'de> for InstallCrate
impl<'de> Deserialize<'de> for InstallCrate
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for InstallCrate
impl PartialEq for InstallCrate
source§fn eq(&self, other: &InstallCrate) -> bool
fn eq(&self, other: &InstallCrate) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.Auto Trait Implementations§
impl Freeze for InstallCrate
impl RefUnwindSafe for InstallCrate
impl Send for InstallCrate
impl Sync for InstallCrate
impl Unpin for InstallCrate
impl UnwindSafe for InstallCrate
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> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more