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

Methods

impl Prefix
[src]

Trait Implementations

impl PartialEq for Prefix
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for Prefix
[src]

impl Clone for Prefix
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Prefix
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for Prefix

impl Sync for Prefix