pub type SubSchema = Schema<Schema<()>>;
Aliased Type§
struct SubSchema {
pub ffv: Ffv,
pub subset_of: Option<Schema<()>>,
pub global_types: Confined<BTreeMap<u16, GlobalStateSchema>, 0, 255>,
pub owned_types: Confined<BTreeMap<u16, StateSchema>, 0, 255>,
pub valency_types: Confined<BTreeSet<u16>, 0, 255>,
pub genesis: GenesisSchema,
pub extensions: Confined<BTreeMap<u16, ExtensionSchema>, 0, 255>,
pub transitions: Confined<BTreeMap<u16, TransitionSchema>, 0, 255>,
pub type_system: TypeSystem,
pub script: Script,
}
Fields§
§ffv: Ffv
§subset_of: Option<Schema<()>>
§global_types: Confined<BTreeMap<u16, GlobalStateSchema>, 0, 255>
§owned_types: Confined<BTreeMap<u16, StateSchema>, 0, 255>
§valency_types: Confined<BTreeSet<u16>, 0, 255>
§genesis: GenesisSchema
§extensions: Confined<BTreeMap<u16, ExtensionSchema>, 0, 255>
§transitions: Confined<BTreeMap<u16, TransitionSchema>, 0, 255>
§type_system: TypeSystem
Type system
script: Script
Validation code.
Implementations
Source§impl<Root> Schema<Root>where
Root: SchemaRoot,
impl<Root> Schema<Root>where
Root: SchemaRoot,
pub fn schema_id(&self) -> SchemaId
pub fn blank_transition(&self) -> TransitionSchema
Source§impl<Root> Schema<Root>where
Root: SchemaRoot,
impl<Root> Schema<Root>where
Root: SchemaRoot,
pub fn validate<C>(
&self,
consignment: &C,
op: OpRef<'_>,
vm: &dyn VirtualMachine,
) -> Statuswhere
C: ConsignmentApi,
Trait Implementations
Source§impl<Root: SchemaRoot> BindleContent for Schema<Root>
impl<Root: SchemaRoot> BindleContent for Schema<Root>
Source§const PLATE_TITLE: &'static str = "RGB SCHEMA"
const PLATE_TITLE: &'static str = "RGB SCHEMA"
String used in ASCII armored blocks
type Id = SchemaId
fn bindle_id(&self) -> Self::Id
fn bindle_mnemonic(&self) -> Option<String>
fn bindle_headers(&self) -> BTreeMap<&'static str, String>
fn bindle(self) -> Bindle<Self>
Source§impl<Root> CommitStrategy for Schema<Root>where
Root: SchemaRoot,
impl<Root> CommitStrategy for Schema<Root>where
Root: SchemaRoot,
Source§impl<Root> CommitmentId for Schema<Root>where
Root: SchemaRoot,
impl<Root> CommitmentId for Schema<Root>where
Root: SchemaRoot,
Source§impl<'de, Root> Deserialize<'de> for Schema<Root>where
Root: SchemaRoot + Deserialize<'de>,
impl<'de, Root> Deserialize<'de> for Schema<Root>where
Root: SchemaRoot + Deserialize<'de>,
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Schema<Root>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Schema<Root>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<Root> Ord for Schema<Root>where
Root: SchemaRoot,
impl<Root> Ord for Schema<Root>where
Root: SchemaRoot,
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<Root> PartialEq for Schema<Root>where
Root: SchemaRoot,
impl<Root> PartialEq for Schema<Root>where
Root: SchemaRoot,
Source§impl<Root> PartialOrd for Schema<Root>where
Root: SchemaRoot,
impl<Root> PartialOrd for Schema<Root>where
Root: SchemaRoot,
Source§impl<Root> Serialize for Schema<Root>where
Root: SchemaRoot + Serialize,
impl<Root> Serialize for Schema<Root>where
Root: SchemaRoot + Serialize,
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more