pub struct SanitizedVersionedTransaction { /* private fields */ }
Expand description
Wraps a sanitized VersionedTransaction
to provide a safe API
Implementations§
source§impl SanitizedVersionedTransaction
impl SanitizedVersionedTransaction
pub fn try_new(tx: VersionedTransaction) -> Result<Self, SanitizeError>
pub fn get_message(&self) -> &SanitizedVersionedMessage
Trait Implementations§
source§impl Clone for SanitizedVersionedTransaction
impl Clone for SanitizedVersionedTransaction
source§fn clone(&self) -> SanitizedVersionedTransaction
fn clone(&self) -> SanitizedVersionedTransaction
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 PartialEq<SanitizedVersionedTransaction> for SanitizedVersionedTransaction
impl PartialEq<SanitizedVersionedTransaction> for SanitizedVersionedTransaction
source§fn eq(&self, other: &SanitizedVersionedTransaction) -> bool
fn eq(&self, other: &SanitizedVersionedTransaction) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryFrom<VersionedTransaction> for SanitizedVersionedTransaction
impl TryFrom<VersionedTransaction> for SanitizedVersionedTransaction
§type Error = SanitizeError
type Error = SanitizeError
The type returned in the event of a conversion error.