Struct rgb::prelude::Metadata [−][src]
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]
fn borrow_mut(&mut self) -> &mut Self::Inner
[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.
fn deref(&self) -> &Self::Target
[src]
impl DerefMut for Metadata
[src]
impl<'de> Deserialize<'de> for Metadata
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
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?
fn into_iter(self) -> Self::IntoIter
[src]
impl PartialEq<Metadata> for Metadata
[src]
impl Serialize for Metadata
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StrictDecode for Metadata
[src]
fn strict_decode<D: Read>(d: D) -> Result<Self, Error>
[src]
pub fn strict_deserialize(data: impl AsRef<[u8]>) -> Result<Self, Error>
[src]
impl StrictEncode for Metadata
[src]
fn strict_encode<E: Write>(&self, e: E) -> Result<usize, Error>
[src]
pub fn strict_serialize(&self) -> Result<Vec<u8, Global>, Error>
[src]
impl StructuralEq for Metadata
[src]
impl StructuralPartialEq for Metadata
[src]
impl ToMerkleSource for Metadata
[src]
type Leaf = MetadataLeaf
fn to_merkle_source(&self) -> MerkleSource<Self::Leaf>
[src]
impl Wrapper for Metadata
[src]
type Inner = BTreeMap<FieldType, BTreeSet<Revealed>>
Inner type wrapped by the current newtype
fn from_inner(inner: Self::Inner) -> Self
[src]
fn as_inner(&self) -> &Self::Inner
[src]
fn as_inner_mut(&mut self) -> &mut Self::Inner
[src]
fn into_inner(self) -> Self::Inner
[src]
pub fn to_inner(&self) -> Self::Inner
[src]
pub fn copy(&self) -> Self where
Self::Inner: Copy,
[src]
Self::Inner: Copy,
Auto Trait Implementations
impl RefUnwindSafe for Metadata
impl Send for Metadata
impl Sync for Metadata
impl Unpin for Metadata
impl UnwindSafe for Metadata
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,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
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.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
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.
pub 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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,