Struct rgb::schema::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: FlagVec
root_id: SchemaId
field_types: BTreeMap<FieldType, DataFormat>
owned_right_types: BTreeMap<OwnedRightType, StateSchema>
public_right_types: BTreeSet<PublicRightType>
genesis: GenesisSchema
extensions: BTreeMap<ExtensionType, ExtensionSchema>
transitions: BTreeMap<TransitionType, TransitionSchema>
Implementations
Trait Implementations
impl ConsensusCommit for Schema
[src]
impl ConsensusCommit for Schema
[src]type Commitment = SchemaId
fn consensus_commit(&self) -> Self::Commitment
fn consensus_verify(&self, commitment: &Self::Commitment) -> bool
impl<'de> Deserialize<'de> for Schema
[src]
impl<'de> Deserialize<'de> for Schema
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more
impl SchemaVerify for Schema
[src]
impl SchemaVerify for Schema
[src]fn schema_verify(&self, root: &Schema) -> Status
[src]
impl StrictDecode for Schema
[src]
impl StrictDecode for Schema
[src]impl StrictEncode for Schema
[src]
impl StrictEncode for Schema
[src]impl Eq for Schema
[src]
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> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> FromBech32 for T where
T: TryFrom<Bech32, Error = Error>,
[src]
impl<T> FromBech32 for T where
T: TryFrom<Bech32, Error = Error>,
[src]pub fn from_bech32(Bech32) -> Result<T, Error>
[src]
pub fn from_bech32(Bech32) -> Result<T, Error>
[src]Unwraps Bech32
enum data into a concrete type, if any, or fails with
Error::WrongType
otherwise Read more
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
pub fn vzip(self) -> V
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,