pub enum OwnedStateSchema {
Declarative,
Fungible(FungibleType),
Structured(SemId),
}Variants§
Implementations§
Source§impl OwnedStateSchema
impl OwnedStateSchema
pub fn validate<State, Seal>(
&self,
opid: OpId,
state_type: AssignmentType,
data: &Assign<State, Seal>,
type_system: &TypeSystem,
) -> Result<(), ValidationError>where
State: ExposedState,
Seal: ExposedSeal,
Trait Implementations§
Source§impl Clone for OwnedStateSchema
impl Clone for OwnedStateSchema
Source§fn clone(&self) -> OwnedStateSchema
fn clone(&self) -> OwnedStateSchema
Returns a duplicate 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 OwnedStateSchema
impl Debug for OwnedStateSchema
Source§impl<'de> Deserialize<'de> for OwnedStateSchema
impl<'de> Deserialize<'de> for OwnedStateSchema
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<OwnedStateSchema, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<OwnedStateSchema, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for OwnedStateSchema
impl PartialEq for OwnedStateSchema
Source§impl Serialize for OwnedStateSchema
impl Serialize for OwnedStateSchema
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 OwnedStateSchema
impl StrictDecode for OwnedStateSchema
fn strict_decode( reader: &mut impl TypedRead, ) -> Result<OwnedStateSchema, DecodeError>
fn strict_read(reader: impl ReadRaw) -> Result<Self, DecodeError>
Source§impl StrictDumb for OwnedStateSchema
impl StrictDumb for OwnedStateSchema
fn strict_dumb() -> OwnedStateSchema
Source§impl StrictEncode for OwnedStateSchema
impl StrictEncode for OwnedStateSchema
fn strict_encode<W>(&self, writer: W) -> Result<W, Error>where
W: TypedWrite,
fn strict_write(&self, writer: impl WriteRaw) -> Result<(), Error>
Source§impl StrictSum for OwnedStateSchema
impl StrictSum for OwnedStateSchema
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<VariantName>
fn variant_ord(&self) -> u8
Source§impl StrictType for OwnedStateSchema
impl StrictType for OwnedStateSchema
const STRICT_LIB_NAME: &'static str = LIB_NAME_RGB_COMMIT
fn strict_name() -> Option<TypeName>
Source§impl StrictUnion for OwnedStateSchema
impl StrictUnion for OwnedStateSchema
fn strict_type_info() -> TypeInfo<Self>
impl Copy for OwnedStateSchema
impl Eq for OwnedStateSchema
impl StructuralPartialEq for OwnedStateSchema
Auto Trait Implementations§
impl Freeze for OwnedStateSchema
impl RefUnwindSafe for OwnedStateSchema
impl Send for OwnedStateSchema
impl Sync for OwnedStateSchema
impl Unpin for OwnedStateSchema
impl UnwindSafe for OwnedStateSchema
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.