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
impl CidCborExt for Cid
source§impl From<CidV1DagCborBlake2b256> for Cid
impl From<CidV1DagCborBlake2b256> for Cid
source§fn from(value: CidV1DagCborBlake2b256) -> Self
fn from(value: CidV1DagCborBlake2b256) -> Self
Converts to this type from the input type.
source§impl From<MaybeCompactedCid> for Cid
impl From<MaybeCompactedCid> for Cid
source§fn from(value: MaybeCompactedCid) -> Self
fn from(value: MaybeCompactedCid) -> Self
Converts to this type from the input type.
source§impl From<Uncompactable> for Cid
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
fn from(value: Uncompactable) -> Self
Converts to this type from the input type.
source§impl HasLotusJson for Cid
impl HasLotusJson for Cid
§type LotusJson = CidLotusJson
type LotusJson = CidLotusJson
The struct representing JSON. You should
#[derive(Deserialize, Serialize)]
on it.