pub enum StateData {
Void,
Fungible(RevealedValue),
Structured(RevealedData),
Attachment(RevealedAttach),
}
Expand description
Categories of the state
Variants§
Trait Implementations§
Source§impl CommitEncode for StateData
impl CommitEncode for StateData
Source§fn commit_encode(&self, e: &mut impl Write)
fn commit_encode(&self, e: &mut impl Write)
Encodes the data for the commitment by writing them directly into a
io::Write
writer instanceSource§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 PartialOrd for StateData
impl PartialOrd for StateData
Source§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>
fn strict_read(lim: usize, reader: impl Read) -> Result<Self, 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,
fn strict_write(&self, lim: usize, writer: impl Write) -> Result<usize, Error>
Source§impl StrictSum for StateData
impl StrictSum for StateData
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 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 StructuralPartialEq for StateData
Auto Trait Implementations§
impl Freeze for StateData
impl RefUnwindSafe for StateData
impl Send for StateData
impl Sync for StateData
impl Unpin for StateData
impl UnwindSafe for StateData
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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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.