pub enum StateData {
Void,
Fungible(RevealedValue),
Structured(RevealedData),
Attachment(RevealedAttach),
}Expand description
Categories of the state
Variants§
Trait Implementations§
source§impl<'de> Deserialize<'de> for StateData
impl<'de> Deserialize<'de> for StateData
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<StateData, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<StateData, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl ExposedState for StateData
impl ExposedState for StateData
type Confidential = StateCommitment
fn state_type(&self) -> StateType
fn state_data(&self) -> StateData
source§impl Ord for StateData
impl Ord for StateData
source§impl PartialEq<StateData> for StateData
impl PartialEq<StateData> for StateData
source§impl PartialOrd<StateData> for StateData
impl PartialOrd<StateData> for StateData
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moresource§impl Serialize for StateData
impl Serialize for StateData
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 StateData
impl StrictDecode for StateData
fn strict_decode(reader: &mut impl TypedRead) -> Result<StateData, DecodeError>
source§impl StrictDumb for StateData
impl StrictDumb for StateData
fn strict_dumb() -> StateData
source§impl StrictEncode for StateData
impl StrictEncode for StateData
fn strict_encode<W>(&self, writer: W) -> Result<W, Error>where W: TypedWrite,
source§impl StrictSum for StateData
impl StrictSum for StateData
const ALL_VARIANTS: &'static [(u8, &'static str)] = &[(0 as u8, "void"), (1 as u8, "fungible"), (2 as u8, "structured"), (255 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 StateData
impl StrictType for StateData
const STRICT_LIB_NAME: &'static str = LIB_NAME_RGB
fn strict_name() -> Option<TypeName>
source§impl StrictUnion for StateData
impl StrictUnion for StateData
fn strict_type_info() -> TypeInfo<Self>
impl Eq for StateData
impl StructuralEq for StateData
impl StructuralPartialEq for StateData
Auto Trait Implementations§
impl RefUnwindSafe for StateData
impl Send for StateData
impl Sync for StateData
impl Unpin for StateData
impl UnwindSafe for StateData
Blanket Implementations§
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.