Type Alias blockless_car::Ipld

source ·
pub type Ipld = Ipld;

Aliased Type§

enum Ipld {
    Null,
    Bool(bool),
    Integer(i128),
    Float(f64),
    String(String),
    Bytes(Vec<u8>),
    List(Vec<Ipld>),
    Map(BTreeMap<String, Ipld>),
    Link(Cid<64>),
}

Variants§

§

Null

Represents the absence of a value or the value undefined.

§

Bool(bool)

Represents a boolean value.

§

Integer(i128)

Represents an integer.

§

Float(f64)

Represents a floating point value.

§

String(String)

Represents an UTF-8 string.

§

Bytes(Vec<u8>)

Represents a sequence of bytes.

§

List(Vec<Ipld>)

Represents a list.

§

Map(BTreeMap<String, Ipld>)

Represents a map of strings.

Represents a map of integers.

Trait Implementations§

source§

impl Decoder<UnixFs> for Ipld

source§

impl TryFrom<UnixFs> for Ipld

§

type Error = CarError

The type returned in the event of a conversion error.
source§

fn try_from(value: UnixFs) -> Result<Self, Self::Error>

Performs the conversion.