pub enum Metadatum {
Int(Int),
Bytes(Vec<u8>),
Text(String),
Array(Vec<Metadatum>),
Map(BTreeMap<Metadatum, Metadatum>),
}Expand description
A piece of (structured) metadata found in transaction.
Variants§
Trait Implementations§
Source§impl<'b, C> Decode<'b, C> for Metadatum
FIXME: Multi-era + length checks on bytes and text
impl<'b, C> Decode<'b, C> for Metadatum
FIXME: Multi-era + length checks on bytes and text
Ensure that this decoder is multi-era capable and also correctly checks for bytes and (utf-8-encoded) text to be encoded as chunks.
Source§impl<'de> Deserialize<'de> for Metadatum
impl<'de> Deserialize<'de> for Metadatum
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
Source§impl Ord for Metadatum
impl Ord for Metadatum
Source§impl PartialOrd for Metadatum
impl PartialOrd for Metadatum
impl Eq for Metadatum
impl StructuralPartialEq for Metadatum
Auto Trait Implementations§
impl Freeze for Metadatum
impl RefUnwindSafe for Metadatum
impl Send for Metadatum
impl Sync for Metadatum
impl Unpin for Metadatum
impl UnsafeUnpin for Metadatum
impl UnwindSafe for Metadatum
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more