pub enum ItemHash {
Native(AlephItemHash),
Ipfs(Cid),
}Variants§
Native(AlephItemHash)
Ipfs(Cid)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ItemHash
impl<'de> Deserialize<'de> for ItemHash
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<AlephItemHash> for ItemHash
impl From<AlephItemHash> for ItemHash
Source§fn from(value: AlephItemHash) -> Self
fn from(value: AlephItemHash) -> Self
Converts to this type from the input type.
impl Eq for ItemHash
impl StructuralPartialEq for ItemHash
Auto Trait Implementations§
impl Freeze for ItemHash
impl RefUnwindSafe for ItemHash
impl Send for ItemHash
impl Sync for ItemHash
impl Unpin for ItemHash
impl UnwindSafe for ItemHash
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