Enum rgb::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: ExposedState, Seal: ExposedSeal>( &self, type_system: &TypeSystem, opid: &OpId, state_type: AssignmentType, data: &Assign<State, Seal> ) -> Status
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<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for StateSchema
impl PartialEq 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§impl StrictDecode for StateSchema
impl StrictDecode for StateSchema
fn strict_decode(reader: &mut impl TypedRead) -> Result<Self, DecodeError>
fn strict_read(lim: usize, reader: impl Read) -> Result<Self, DecodeError>
source§impl StrictDumb for StateSchema
impl StrictDumb for StateSchema
fn strict_dumb() -> Self
source§impl StrictEncode for StateSchema
impl StrictEncode for StateSchema
fn strict_encode<W: TypedWrite>(&self, writer: W) -> Result<W>
fn strict_write(&self, lim: usize, writer: impl Write) -> Result<usize, Error>
source§impl StrictSum for StateSchema
impl StrictSum for StateSchema
const ALL_VARIANTS: &'static [(u8, &'static str)] = _
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.