[][src]Enum lnpbp::rgb::schema::DataFormat

#[non_exhaustive]pub enum DataFormat {
    Unsigned(Bitsu128u128),
    Integer(Bitsi128i128),
    Float(Bitsf64f64),
    Enum(BTreeSet<u8>),
    String(u16),
    Bytes(u16),
    Digest(DigestAlgorithm),
    PublicKey(EllipticCurvePointSerialization),
    Signature(SignatureAlgorithm),
    TxOutPoint,
    Tx,
    Psbt,
}

Variants (Non-exhaustive)

Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Unsigned(Bitsu128u128)
Integer(Bitsi128i128)
Float(Bitsf64f64)
Enum(BTreeSet<u8>)
String(u16)
Bytes(u16)
TxOutPoint
Tx
Psbt

Implementations

impl DataFormat[src]

pub fn validate(&self, item_id: usize, data: &Revealed) -> Status[src]

impl DataFormat[src]

pub fn u8() -> Self[src]

pub fn u16() -> Self[src]

pub fn u32() -> Self[src]

pub fn u64() -> Self[src]

pub fn i8() -> Self[src]

pub fn i16() -> Self[src]

pub fn i32() -> Self[src]

pub fn i64() -> Self[src]

pub fn f32() -> Self[src]

pub fn f64() -> Self[src]

Trait Implementations

impl Clone for DataFormat[src]

impl Debug for DataFormat[src]

impl Display for DataFormat[src]

impl PartialEq<DataFormat> for DataFormat[src]

impl StrictDecode for DataFormat[src]

type Error = Error

Implementation-dependent error type

impl StrictEncode for DataFormat[src]

type Error = Error

Implementation-dependent error type

impl StructuralPartialEq for DataFormat[src]

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> 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>,