pub struct DecodedCid {
pub kind: CidType,
pub reference: Reference,
}Expand description
Decoded CID payload returned by convert_cid_to_reference.
Fields§
§kind: CidTypeThe CID type recovered from the multicodec byte.
reference: ReferenceThe Swarm reference embedded in the CID.
Trait Implementations§
Source§impl Clone for DecodedCid
impl Clone for DecodedCid
Source§fn clone(&self) -> DecodedCid
fn clone(&self) -> DecodedCid
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 DecodedCid
impl Debug for DecodedCid
Source§impl PartialEq for DecodedCid
impl PartialEq for DecodedCid
impl Eq for DecodedCid
impl StructuralPartialEq for DecodedCid
Auto Trait Implementations§
impl Freeze for DecodedCid
impl RefUnwindSafe for DecodedCid
impl Send for DecodedCid
impl Sync for DecodedCid
impl Unpin for DecodedCid
impl UnsafeUnpin for DecodedCid
impl UnwindSafe for DecodedCid
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