#[repr(u8)]pub enum TapCommitmentVersion {
V0 = 0,
V1 = 1,
V2 = 2,
}Expand description
Denotes the structure of the Taproot Asset commitment MS-SMT and the procedure
for building a TapLeaf from a Taproot Asset commitment.
This corresponds to commitment.TapCommitmentVersion in Go.
Variants§
V0 = 0
Initial Taproot Asset Commitment version. Uses legacy TapLeaf format, ONLY commits to V0 assets.
V1 = 1
Used by Taproot Asset Commitments that commit to V0 or V1 assets. Uses legacy TapLeaf format.
V2 = 2
Used by Taproot Asset Commitments that commit to V0 or V1 assets. Uses V1 TapLeaf format.
Trait Implementations§
Source§impl Clone for TapCommitmentVersion
impl Clone for TapCommitmentVersion
Source§fn clone(&self) -> TapCommitmentVersion
fn clone(&self) -> TapCommitmentVersion
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TapCommitmentVersion
Source§impl Debug for TapCommitmentVersion
impl Debug for TapCommitmentVersion
Source§impl<'de> Deserialize<'de> for TapCommitmentVersion
impl<'de> Deserialize<'de> for TapCommitmentVersion
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for TapCommitmentVersion
Source§impl Hash for TapCommitmentVersion
impl Hash for TapCommitmentVersion
Source§impl PartialEq for TapCommitmentVersion
impl PartialEq for TapCommitmentVersion
Source§fn eq(&self, other: &TapCommitmentVersion) -> bool
fn eq(&self, other: &TapCommitmentVersion) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for TapCommitmentVersion
impl Serialize for TapCommitmentVersion
impl StructuralPartialEq for TapCommitmentVersion
Auto Trait Implementations§
impl Freeze for TapCommitmentVersion
impl RefUnwindSafe for TapCommitmentVersion
impl Send for TapCommitmentVersion
impl Sync for TapCommitmentVersion
impl Unpin for TapCommitmentVersion
impl UnsafeUnpin for TapCommitmentVersion
impl UnwindSafe for TapCommitmentVersion
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