pub enum StateCommitment {
Void,
Fungible(ConcealedValue),
Structured(ConcealedData),
Attachment(ConcealedAttach),
}
Variants§
Trait Implementations§
Source§impl Clone for StateCommitment
impl Clone for StateCommitment
Source§fn clone(&self) -> StateCommitment
fn clone(&self) -> StateCommitment
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 CommitEncode for StateCommitment
impl CommitEncode for StateCommitment
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 ConfidentialState for StateCommitment
impl ConfidentialState for StateCommitment
fn state_type(&self) -> StateType
fn state_commitment(&self) -> StateCommitment
Source§impl Debug for StateCommitment
impl Debug for StateCommitment
Source§impl<'de> Deserialize<'de> for StateCommitment
impl<'de> Deserialize<'de> for StateCommitment
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<StateCommitment, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<StateCommitment, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for StateCommitment
impl Hash for StateCommitment
Source§impl PartialEq for StateCommitment
impl PartialEq for StateCommitment
Source§impl Serialize for StateCommitment
impl Serialize for StateCommitment
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 StateCommitment
impl StrictDecode for StateCommitment
fn strict_decode( reader: &mut impl TypedRead, ) -> Result<StateCommitment, DecodeError>
fn strict_read(lim: usize, reader: impl Read) -> Result<Self, DecodeError>
Source§impl StrictDumb for StateCommitment
impl StrictDumb for StateCommitment
fn strict_dumb() -> StateCommitment
Source§impl StrictEncode for StateCommitment
impl StrictEncode for StateCommitment
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 StateCommitment
impl StrictSum for StateCommitment
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 StateCommitment
impl StrictType for StateCommitment
const STRICT_LIB_NAME: &'static str = LIB_NAME_RGB
fn strict_name() -> Option<TypeName>
Source§impl StrictUnion for StateCommitment
impl StrictUnion for StateCommitment
fn strict_type_info() -> TypeInfo<Self>
impl Copy for StateCommitment
impl Eq for StateCommitment
impl StructuralPartialEq for StateCommitment
Auto Trait Implementations§
impl Freeze for StateCommitment
impl RefUnwindSafe for StateCommitment
impl Send for StateCommitment
impl Sync for StateCommitment
impl Unpin for StateCommitment
impl UnwindSafe for StateCommitment
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.