pub struct DataModel(/* private fields */);
Methods from Deref<Target = Ipld>§
Sourcepub fn kind(&self) -> IpldKind
pub fn kind(&self) -> IpldKind
Convert from an Ipld
object into its kind without any associated values.
This is intentionally not implemented via From<Ipld>
to prevent accidental conversions by
making it more explicit.
Sourcepub fn get<'a, T>(&self, index: T) -> Result<Option<&Ipld>, IndexError>
pub fn get<'a, T>(&self, index: T) -> Result<Option<&Ipld>, IndexError>
Indexes into an ipld list or map.
Sourcepub fn references<E>(&self, set: &mut E)
pub fn references<E>(&self, set: &mut E)
Returns the references to other blocks.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for DataModel
impl<'de> Deserialize<'de> for DataModel
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for DataModel
impl StructuralPartialEq for DataModel
Auto Trait Implementations§
impl Freeze for DataModel
impl RefUnwindSafe for DataModel
impl Send for DataModel
impl Sync for DataModel
impl Unpin for DataModel
impl UnwindSafe for DataModel
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.