Struct rgb::prelude::Schema[][src]

pub struct Schema {
    pub rgb_features: FlagVec,
    pub root_id: SchemaId,
    pub field_types: BTreeMap<FieldType, DataFormat>,
    pub owned_right_types: BTreeMap<OwnedRightType, StateSchema>,
    pub public_right_types: BTreeSet<PublicRightType>,
    pub genesis: GenesisSchema,
    pub extensions: BTreeMap<ExtensionType, ExtensionSchema>,
    pub transitions: BTreeMap<TransitionType, TransitionSchema>,
}

Fields

rgb_features: FlagVecroot_id: SchemaIdfield_types: BTreeMap<FieldType, DataFormat>owned_right_types: BTreeMap<OwnedRightType, StateSchema>public_right_types: BTreeSet<PublicRightType>genesis: GenesisSchemaextensions: BTreeMap<ExtensionType, ExtensionSchema>transitions: BTreeMap<TransitionType, TransitionSchema>

Implementations

impl Schema[src]

pub fn validate(
    &self,
    all_nodes: &BTreeMap<NodeId, &dyn Node>,
    node: &dyn Node
) -> Status
[src]

impl Schema[src]

pub fn schema_id(&self) -> SchemaId[src]

pub fn scripts(&self) -> SimplicityScript[src]

Trait Implementations

impl Clone for Schema[src]

impl CommitEncodeWithStrategy for Schema[src]

type Strategy = UsingStrict

impl ConsensusCommit for Schema[src]

type Commitment = SchemaId

impl Debug for Schema[src]

impl Default for Schema[src]

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

impl Display for Schema[src]

impl Eq for Schema[src]

impl From<Schema> for Bech32[src]

impl FromStr for Schema[src]

type Err = Error

The associated error which can be returned from parsing.

impl PartialEq<Schema> for Schema[src]

impl SchemaVerify for Schema[src]

impl Serialize for Schema[src]

impl StrictDecode for Schema[src]

impl StrictEncode for Schema[src]

impl TryFrom<Bech32> for Schema[src]

type Error = Error

The type returned in the event of a conversion error.

Auto Trait Implementations

impl RefUnwindSafe for Schema

impl Send for Schema

impl Sync for Schema

impl Unpin for Schema

impl UnwindSafe for Schema

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> FromBech32 for T where
    T: TryFrom<Bech32, Error = Error>, 
[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> ToBech32 for T where
    T: Into<Bech32> + Clone
[src]

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