pub struct CidInfo {
pub cid_string: String,
pub version: u8,
pub codec: u64,
pub hash_code: u64,
pub hash_length: usize,
}Expand description
Information about a CID for diagnostic purposes.
Fields§
§cid_string: StringCID string representation
version: u8CID version (0 or 1)
codec: u64Codec identifier
hash_code: u64Hash algorithm code
hash_length: usizeHash digest length in bytes
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CidInfo
impl RefUnwindSafe for CidInfo
impl Send for CidInfo
impl Sync for CidInfo
impl Unpin for CidInfo
impl UnwindSafe for CidInfo
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