Cid

Type Alias Cid 

Source
pub type Cid = Cid<64>;
Expand description

A Cid that contains a multihash with an allocated size of 512 bits.

This is the same digest size the default multihash code table has.

If you need a CID that is generic over its digest size, use CidGeneric instead.

Aliased Type§

pub struct Cid { /* private fields */ }

Trait Implementations§

Source§

impl AsCid for Cid

Source§

fn as_cid(&self) -> &Cid

Get the CID as a reference
Source§

impl From<AnyTwine> for Cid

Source§

fn from(t: AnyTwine) -> Self

Converts to this type from the input type.
Source§

impl From<Strand> for Cid

Source§

fn from(t: Strand) -> Self

Converts to this type from the input type.
Source§

impl From<Tixel> for Cid

Source§

fn from(t: Tixel) -> Self

Converts to this type from the input type.
Source§

impl From<Twine> for Cid

Source§

fn from(twine: Twine) -> Self

Converts to this type from the input type.