pub enum TransactionVersion {
Legacy,
Number(u8),
}Expand description
Enum representing the version of a Solana transaction.
Variants§
Legacy
Legacy transaction format, which does not explicitly include a version number.
Number(u8)
Versioned transaction format.
Trait Implementations§
Source§impl CandidType for TransactionVersion
impl CandidType for TransactionVersion
Source§impl Clone for TransactionVersion
impl Clone for TransactionVersion
Source§fn clone(&self) -> TransactionVersion
fn clone(&self) -> TransactionVersion
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 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<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
Source§impl From<TransactionVersion> for TransactionVersion
impl From<TransactionVersion> for TransactionVersion
Source§fn from(version: TransactionVersion) -> Self
fn from(version: TransactionVersion) -> Self
Converts to this type from the input type.
Source§impl From<TransactionVersion> for TransactionVersion
impl From<TransactionVersion> for TransactionVersion
Source§fn from(version: TransactionVersion) -> Self
fn from(version: TransactionVersion) -> Self
Converts to this type from the input type.
Source§impl PartialEq for TransactionVersion
impl PartialEq for TransactionVersion
Source§impl Serialize for TransactionVersion
impl Serialize for TransactionVersion
impl StructuralPartialEq for TransactionVersion
Auto Trait Implementations§
impl Freeze for TransactionVersion
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more