Enum rgbstd::schema::StateSchema  
source · pub enum StateSchema {
    Declarative,
    Fungible(FungibleType),
    Structured(SemId),
    Attachment(MediaType),
}Variants§
Implementations§
source§impl StateSchema
 
impl StateSchema
pub fn state_type(&self) -> StateType
source§impl StateSchema
 
impl StateSchema
pub fn validate<State, Seal>( &self, type_system: &TypeSystem, opid: &OpId, state_type: u16, data: &Assign<State, Seal> ) -> Statuswhere State: ExposedState, Seal: ExposedSeal,
Trait Implementations§
source§impl Clone for StateSchema
 
impl Clone for StateSchema
source§fn clone(&self) -> StateSchema
 
fn clone(&self) -> StateSchema
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from 
source. Read moresource§impl Debug for StateSchema
 
impl Debug for StateSchema
source§impl<'de> Deserialize<'de> for StateSchema
 
impl<'de> Deserialize<'de> for StateSchema
source§fn deserialize<__D>(
    __deserializer: __D
) -> Result<StateSchema, <__D as Deserializer<'de>>::Error>where
    __D: Deserializer<'de>,
 
fn deserialize<__D>( __deserializer: __D ) -> Result<StateSchema, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<StateSchema> for StateSchema
 
impl PartialEq<StateSchema> for StateSchema
source§fn eq(&self, other: &StateSchema) -> bool
 
fn eq(&self, other: &StateSchema) -> bool
This method tests for 
self and other values to be equal, and is used
by ==.source§impl Serialize for StateSchema
 
impl Serialize for StateSchema
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
source§impl StrictDecode for StateSchema
 
impl StrictDecode for StateSchema
fn strict_decode( reader: &mut impl TypedRead ) -> Result<StateSchema, DecodeError>
source§impl StrictDumb for StateSchema
 
impl StrictDumb for StateSchema
fn strict_dumb() -> StateSchema
source§impl StrictEncode for StateSchema
 
impl StrictEncode for StateSchema
fn strict_encode<W>(&self, writer: W) -> Result<W, Error>where W: TypedWrite,
source§impl StrictSum for StateSchema
 
impl StrictSum for StateSchema
const ALL_VARIANTS: &'static [(u8, &'static str)] = &[(0usize as u8, "declarative"), (1usize as u8, "fungible"), (2usize as u8, "structured"), (3usize as u8, "attachment")]
fn variant_name(&self) -> &'static str
fn strict_check_variants()
fn variant_name_by_tag(tag: u8) -> Option<FieldName>
fn variant_ord(&self) -> u8
source§impl StrictType for StateSchema
 
impl StrictType for StateSchema
const STRICT_LIB_NAME: &'static str = LIB_NAME_RGB
fn strict_name() -> Option<TypeName>
source§impl StrictUnion for StateSchema
 
impl StrictUnion for StateSchema
fn strict_type_info() -> TypeInfo<Self>
impl Copy for StateSchema
impl Eq for StateSchema
impl StructuralEq for StateSchema
impl StructuralPartialEq for StateSchema
Auto Trait Implementations§
impl RefUnwindSafe for StateSchema
impl Send for StateSchema
impl Sync for StateSchema
impl Unpin for StateSchema
impl UnwindSafe for StateSchema
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
 
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<Q, K> Equivalent<K> for Qwhere
    Q: Eq + ?Sized,
    K: Borrow<Q> + ?Sized,
 
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
 
fn equivalent(&self, key: &K) -> bool
Compare self to 
key and return true if they are equal.