Enum cli::types::DeprecationInfo
source · pub enum DeprecationInfo {
Boolean(bool),
Message(String),
}
Expand description
Holds deprecation info such as true/false/message
Variants§
Trait Implementations§
source§impl Clone for DeprecationInfo
impl Clone for DeprecationInfo
source§fn clone(&self) -> DeprecationInfo
fn clone(&self) -> DeprecationInfo
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 DeprecationInfo
impl Debug for DeprecationInfo
source§impl<'de> Deserialize<'de> for DeprecationInfo
impl<'de> Deserialize<'de> for DeprecationInfo
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 DeprecationInfo
impl PartialEq for DeprecationInfo
source§fn eq(&self, other: &DeprecationInfo) -> bool
fn eq(&self, other: &DeprecationInfo) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.Auto Trait Implementations§
impl Freeze for DeprecationInfo
impl RefUnwindSafe for DeprecationInfo
impl Send for DeprecationInfo
impl Sync for DeprecationInfo
impl Unpin for DeprecationInfo
impl UnwindSafe for DeprecationInfo
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