#[repr(u8)]pub enum AssetVersion {
V0 = 0,
V1 = 1,
}Expand description
The version of the Taproot Asset.
Variants§
V0 = 0
V0 is the default asset version. This version will include the witness vector in the leaf for a tap commitment.
V1 = 1
V1 is the asset version that leaves out the witness vector from the MS-SMT leaf encoding.
Trait Implementations§
Source§impl Clone for AssetVersion
impl Clone for AssetVersion
Source§fn clone(&self) -> AssetVersion
fn clone(&self) -> AssetVersion
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 AssetVersion
Source§impl Debug for AssetVersion
impl Debug for AssetVersion
Source§impl<'de> Deserialize<'de> for AssetVersion
impl<'de> Deserialize<'de> for AssetVersion
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 AssetVersion
Source§impl Hash for AssetVersion
impl Hash for AssetVersion
Source§impl Ord for AssetVersion
impl Ord for AssetVersion
Source§fn cmp(&self, other: &AssetVersion) -> Ordering
fn cmp(&self, other: &AssetVersion) -> Ordering
1.21.0 (const: unstable) · 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 AssetVersion
impl PartialEq for AssetVersion
Source§fn eq(&self, other: &AssetVersion) -> bool
fn eq(&self, other: &AssetVersion) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for AssetVersion
impl PartialOrd for AssetVersion
Source§impl Serialize for AssetVersion
impl Serialize for AssetVersion
impl StructuralPartialEq for AssetVersion
Auto Trait Implementations§
impl Freeze for AssetVersion
impl RefUnwindSafe for AssetVersion
impl Send for AssetVersion
impl Sync for AssetVersion
impl Unpin for AssetVersion
impl UnsafeUnpin for AssetVersion
impl UnwindSafe for AssetVersion
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