Type Alias forest_filecoin::shim::fvm_latest::kernel::prelude::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§

struct Cid { /* private fields */ }

Trait Implementations§

source§

impl CidCborExt for Cid

source§

fn from_cbor_blake2b256<S: Serialize>(obj: &S) -> Result<Cid, Error>

Default CID builder for Filecoin Read more
source§

impl From<CidV1DagCborBlake2b256> for Cid

source§

fn from(value: CidV1DagCborBlake2b256) -> Self

Converts to this type from the input type.
source§

impl From<MaybeCompactedCid> for Cid

source§

fn from(value: MaybeCompactedCid) -> Self

Converts to this type from the input type.
source§

impl From<SmallCid> for Cid

source§

fn from(value: SmallCid) -> Self

Converts to this type from the input type.
source§

impl From<Uncompactable> for Cid

Uncompactable can only be created through MaybeCompactedCid, since that type defines the canonical conversion

source§

fn from(value: Uncompactable) -> Self

Converts to this type from the input type.
source§

impl HasLotusJson for Cid

§

type LotusJson = CidLotusJson

The struct representing JSON. You should #[derive(Deserialize, Serialize)] on it.
source§

fn into_lotus_json(self) -> Self::LotusJson

source§

fn from_lotus_json(lotus_json: Self::LotusJson) -> Self

source§

fn into_lotus_json_value(self) -> Result<Value>

source§

fn into_lotus_json_string(self) -> Result<String>

source§

fn into_lotus_json_string_pretty(self) -> Result<String>