pub enum Cid {
V0(CidV0),
V1(CidV1),
}Expand description
Represents an IPFS Content Identifier (CID). Supports both CIDv0 (base58-encoded SHA-256 multihash) and CIDv1 (multibase-encoded).
Variants§
V0(CidV0)
CIDv0: Always a base58-encoded multihash starting with “Qm”
V1(CidV1)
CIDv1: Multibase-encoded CID with various encodings (base32, base58btc, etc.)
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Cid
impl<'de> Deserialize<'de> for Cid
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
impl Eq for Cid
impl StructuralPartialEq for Cid
Auto Trait Implementations§
impl Freeze for Cid
impl RefUnwindSafe for Cid
impl Send for Cid
impl Sync for Cid
impl Unpin for Cid
impl UnsafeUnpin for Cid
impl UnwindSafe for Cid
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