[−]Enum ipld_block_builder::Ipld
Ipld
Variants
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.
Represents a sequence of bytes.
Represents a list.
Represents a map.
Link(CidGeneric<Codec, Code>)Represents a link to an Ipld node.
Implementations
impl Ipld
pub fn get<'a, T>(&self, index: T) -> Result<&Ipld, TypeError> where
T: Into<IpldIndex<'a>>,
T: Into<IpldIndex<'a>>,
Indexes into a ipld list or map.
pub fn iter(&self) -> IpldIter
Returns an iterator.
Trait Implementations
impl Clone for Ipld
fn clone(&self) -> Ipld
fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Debug for Ipld
impl Decode<DagCbor> for Ipld
impl Decode<Raw> for Ipld
impl Encode<DagCbor> for Ipld
impl Encode<Raw> for Ipld
impl<'_> From<&'_ [u8]> for Ipld
impl<'_> From<&'_ CidGeneric<Codec, Code>> for Ipld
fn from(t: &CidGeneric<Codec, Code>) -> Ipld
impl<'_> From<&'_ Ipld> for TypeErrorType
fn from(ipld: &Ipld) -> TypeErrorType
impl<'_> From<&'_ str> for Ipld
impl From<BTreeMap<String, Ipld>> for Ipld
impl From<Box<[u8]>> for Ipld
impl From<CidGeneric<Codec, Code>> for Ipld
fn from(t: CidGeneric<Codec, Code>) -> Ipld
impl From<String> for Ipld
impl From<Vec<Ipld>> for Ipld
impl From<Vec<u8>> for Ipld
impl From<bool> for Ipld
impl From<f32> for Ipld
impl From<f64> for Ipld
impl From<i128> for Ipld
impl From<i16> for Ipld
impl From<i32> for Ipld
impl From<i64> for Ipld
impl From<i8> for Ipld
impl From<isize> for Ipld
impl From<u16> for Ipld
impl From<u32> for Ipld
impl From<u64> for Ipld
impl From<u8> for Ipld
impl From<usize> for Ipld
impl PartialEq<Ipld> for Ipld
impl StructuralPartialEq for Ipld
impl TryReadCbor for Ipld
Auto Trait Implementations
impl RefUnwindSafe for Ipld
impl Send for Ipld
impl Sync for Ipld
impl Unpin for Ipld
impl UnwindSafe for Ipld
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,