Struct rgb::prelude::Metadata[][src]

pub struct Metadata(_);

Transition & genesis metadata fields

Implementations

impl Metadata[src]

pub fn u8(&self, field_type: FieldType) -> Vec<u8>[src]

pub fn u16(&self, field_type: FieldType) -> Vec<u16>[src]

pub fn u32(&self, field_type: FieldType) -> Vec<u32>[src]

pub fn u64(&self, field_type: FieldType) -> Vec<u64>[src]

pub fn i8(&self, field_type: FieldType) -> Vec<i8>[src]

pub fn i16(&self, field_type: FieldType) -> Vec<i16>[src]

pub fn i32(&self, field_type: FieldType) -> Vec<i32>[src]

pub fn i64(&self, field_type: FieldType) -> Vec<i64>[src]

pub fn f32(&self, field_type: FieldType) -> Vec<f32>[src]

pub fn f64(&self, field_type: FieldType) -> Vec<f64>[src]

pub fn bytes(&self, field_type: FieldType) -> Vec<Vec<u8>>[src]

pub fn string(&self, field_type: FieldType) -> Vec<String>[src]

Trait Implementations

impl AsMut<<Metadata as Wrapper>::Inner> for Metadata[src]

impl AsRef<<Metadata as Wrapper>::Inner> for Metadata[src]

impl Borrow<<Metadata as Wrapper>::Inner> for Metadata[src]

impl BorrowMut<<Metadata as Wrapper>::Inner> for Metadata[src]

impl Clone for Metadata[src]

impl Debug for Metadata[src]

impl Default for Metadata[src]

impl Deref for Metadata[src]

type Target = Self::Inner

The resulting type after dereferencing.

impl DerefMut for Metadata[src]

impl<'de> Deserialize<'de> for Metadata[src]

impl Display for Metadata[src]

impl Eq for Metadata[src]

impl From<BTreeMap<usize, BTreeSet<Revealed>>> for Metadata[src]

impl IntoIterator for Metadata[src]

type Item = <BTreeMap<FieldType, BTreeSet<Revealed>> as IntoIterator>::Item

The type of the elements being iterated over.

type IntoIter = <BTreeMap<FieldType, BTreeSet<Revealed>> as IntoIterator>::IntoIter

Which kind of iterator are we turning this into?

impl PartialEq<Metadata> for Metadata[src]

impl Serialize for Metadata[src]

impl StrictDecode for Metadata[src]

impl StrictEncode for Metadata[src]

impl StructuralEq for Metadata[src]

impl StructuralPartialEq for Metadata[src]

impl ToMerkleSource for Metadata[src]

type Leaf = MetadataLeaf

impl Wrapper for Metadata[src]

type Inner = BTreeMap<FieldType, BTreeSet<Revealed>>

Inner type wrapped by the current newtype

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,