pub enum RevealedState {
Void,
Fungible(RevealedValue),
Structured(RevealedData),
}Expand description
Categories of the state
Variants§
Trait Implementations§
Source§impl Clone for RevealedState
impl Clone for RevealedState
Source§fn clone(&self) -> RevealedState
fn clone(&self) -> RevealedState
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 RevealedState
impl Debug for RevealedState
Source§impl<'de> Deserialize<'de> for RevealedState
impl<'de> Deserialize<'de> for RevealedState
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<RevealedState, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<RevealedState, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl ExposedState for RevealedState
impl ExposedState for RevealedState
fn state_type(&self) -> StateType
fn state_data(&self) -> RevealedState
Source§impl Hash for RevealedState
impl Hash for RevealedState
Source§impl Ord for RevealedState
impl Ord for RevealedState
Source§fn cmp(&self, other: &RevealedState) -> Ordering
fn cmp(&self, other: &RevealedState) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for RevealedState
impl PartialEq for RevealedState
Source§impl PartialOrd for RevealedState
impl PartialOrd for RevealedState
Source§impl Serialize for RevealedState
impl Serialize for RevealedState
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 RevealedState
impl StrictDecode for RevealedState
fn strict_decode( reader: &mut impl TypedRead, ) -> Result<RevealedState, DecodeError>
fn strict_read(reader: impl ReadRaw) -> Result<Self, DecodeError>
Source§impl StrictDumb for RevealedState
impl StrictDumb for RevealedState
fn strict_dumb() -> RevealedState
Source§impl StrictEncode for RevealedState
impl StrictEncode for RevealedState
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 RevealedState
impl StrictSum for RevealedState
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 RevealedState
impl StrictType for RevealedState
const STRICT_LIB_NAME: &'static str = LIB_NAME_RGB_LOGIC
fn strict_name() -> Option<TypeName>
Source§impl StrictUnion for RevealedState
impl StrictUnion for RevealedState
fn strict_type_info() -> TypeInfo<Self>
impl Eq for RevealedState
impl StructuralPartialEq for RevealedState
Auto Trait Implementations§
impl Freeze for RevealedState
impl RefUnwindSafe for RevealedState
impl Send for RevealedState
impl Sync for RevealedState
impl Unpin for RevealedState
impl UnwindSafe for RevealedState
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.