Struct cid::Prefix
[−]
[src]
pub struct Prefix { pub version: Version, pub codec: Codec, pub mh_type: Hash, pub mh_len: usize, }
Prefix represents all metadata of a CID, without the actual content.
Fields
version: Version
codec: Codec
mh_type: Hash
mh_len: usize
Methods
impl Prefix
[src]
Trait Implementations
impl PartialEq for Prefix
[src]
fn eq(&self, __arg_0: &Prefix) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Prefix) -> bool
This method tests for !=
.
impl Eq for Prefix
[src]
impl Clone for Prefix
[src]
fn clone(&self) -> Prefix
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more