#[repr(u8)]pub enum TransactionVersion {
Mainnet = 0,
Testnet = 128,
}
Expand description
Stacks transaction versions
Variants§
Trait Implementations§
source§impl Clone for TransactionVersion
impl Clone for TransactionVersion
source§fn clone(&self) -> TransactionVersion
fn clone(&self) -> TransactionVersion
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 Debug for TransactionVersion
impl Debug for TransactionVersion
source§impl<'de> Deserialize<'de> for TransactionVersion
impl<'de> Deserialize<'de> for TransactionVersion
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<TransactionVersion, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<TransactionVersion, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for TransactionVersion
impl PartialEq for TransactionVersion
source§fn eq(&self, other: &TransactionVersion) -> bool
fn eq(&self, other: &TransactionVersion) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for TransactionVersion
impl Serialize for TransactionVersion
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
impl Copy for TransactionVersion
impl StructuralPartialEq for TransactionVersion
Auto Trait Implementations§
impl RefUnwindSafe for TransactionVersion
impl Send for TransactionVersion
impl Sync for TransactionVersion
impl Unpin for TransactionVersion
impl UnwindSafe for TransactionVersion
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