pub enum OptionMappedCid {
Unmapped(Cid),
Mapped(MappedCid),
}Expand description
Simple type to make mapped Cid’s clear.
Variants§
Unmapped(Cid)
Unmapped Cid (Internal/Mapped is the same as External/Plain).
Mapped(MappedCid)
Mapped Cid (Internal/Mapped, External/Plain).
Implementations§
Trait Implementations§
Source§impl Clone for OptionMappedCid
impl Clone for OptionMappedCid
Source§fn clone(&self) -> OptionMappedCid
fn clone(&self) -> OptionMappedCid
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 OptionMappedCid
impl Debug for OptionMappedCid
Source§impl<'de> Deserialize<'de> for OptionMappedCid
impl<'de> Deserialize<'de> for OptionMappedCid
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 From<Cid<64>> for OptionMappedCid
impl From<Cid<64>> for OptionMappedCid
Source§fn from(original: Cid) -> OptionMappedCid
fn from(original: Cid) -> OptionMappedCid
Converts to this type from the input type.
Source§impl From<MappedCid> for OptionMappedCid
impl From<MappedCid> for OptionMappedCid
Source§fn from(original: MappedCid) -> OptionMappedCid
fn from(original: MappedCid) -> OptionMappedCid
Converts to this type from the input type.
Source§impl Hash for OptionMappedCid
impl Hash for OptionMappedCid
Source§impl Ord for OptionMappedCid
impl Ord for OptionMappedCid
Source§fn cmp(&self, other: &OptionMappedCid) -> Ordering
fn cmp(&self, other: &OptionMappedCid) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for OptionMappedCid
impl PartialEq for OptionMappedCid
Source§impl PartialOrd for OptionMappedCid
impl PartialOrd for OptionMappedCid
Source§impl Serialize for OptionMappedCid
impl Serialize for OptionMappedCid
impl Copy for OptionMappedCid
impl Eq for OptionMappedCid
impl StructuralPartialEq for OptionMappedCid
Auto Trait Implementations§
impl Freeze for OptionMappedCid
impl RefUnwindSafe for OptionMappedCid
impl Send for OptionMappedCid
impl Sync for OptionMappedCid
impl Unpin for OptionMappedCid
impl UnsafeUnpin for OptionMappedCid
impl UnwindSafe for OptionMappedCid
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<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