#[non_exhaustive]pub enum TransactionEffects {
V1(Box<TransactionEffectsV1>),
}Expand description
The output or effects of executing a transaction
§BCS
The BCS serialized form for this type is defined by the following ABNF:
transaction-effects = %d00 transaction-effects-v1 ; V1Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
V1(Box<TransactionEffectsV1>)
Implementations§
Source§impl TransactionEffects
impl TransactionEffects
pub fn digest(&self) -> TransactionEffectsDigest
Available on crate features
hash and serde only.Source§impl TransactionEffects
impl TransactionEffects
Sourcepub fn as_v1(&self) -> &TransactionEffectsV1
pub fn as_v1(&self) -> &TransactionEffectsV1
Converts this into a v1 if it is a v1 variant, or panics otherwise.
Sourcepub fn as_opt_v1(&self) -> Option<&TransactionEffectsV1>
pub fn as_opt_v1(&self) -> Option<&TransactionEffectsV1>
Converts this into a v1 if it is a v1 variant, or returns None otherwise.
Sourcepub fn into_opt_v1(self) -> Option<TransactionEffectsV1>
pub fn into_opt_v1(self) -> Option<TransactionEffectsV1>
Converts this into a v1 if it is a v1 variant, or returns None otherwise.
Sourcepub fn into_v1(self) -> TransactionEffectsV1
pub fn into_v1(self) -> TransactionEffectsV1
Converts this into a v1 if it is a v1 variant, or panics otherwise.
Source§impl TransactionEffects
impl TransactionEffects
Sourcepub fn to_bcs(&self) -> Vec<u8> ⓘ
Available on crate feature serde only.
pub fn to_bcs(&self) -> Vec<u8> ⓘ
serde only.Serialize this TransactionEffects as a Vec<u8> of BCS bytes.
Sourcepub fn to_base64(&self) -> String
Available on crate feature serde only.
pub fn to_base64(&self) -> String
serde only.Serialize this TransactionEffects as a base64-encoded string of its BCS bytes.
Sourcepub fn from_bcs(bytes: &[u8]) -> Result<Self, Error>
Available on crate feature serde only.
pub fn from_bcs(bytes: &[u8]) -> Result<Self, Error>
serde only.Deserialize a TransactionEffects from BCS bytes.
Sourcepub fn from_base64(bytes: &str) -> Result<Self, Error>
Available on crate feature serde only.
pub fn from_base64(bytes: &str) -> Result<Self, Error>
serde only.Deserialize a TransactionEffects from a base64-encoded string of its BCS bytes.
Trait Implementations§
Source§impl Arbitrary for TransactionEffects
Available on crate feature proptest only.
impl Arbitrary for TransactionEffects
Available on crate feature
proptest only.Source§type Parameters = ()
type Parameters = ()
The type of parameters that
arbitrary_with accepts for configuration
of the generated Strategy. Parameters must implement Default.Source§type Strategy = BoxedStrategy<TransactionEffects>
type Strategy = BoxedStrategy<TransactionEffects>
The type of
Strategy used to generate values of type Self.Source§fn arbitrary_with(
args_shared: <Self as Arbitrary>::Parameters,
) -> Self::Strategy
fn arbitrary_with( args_shared: <Self as Arbitrary>::Parameters, ) -> Self::Strategy
Source§impl Clone for TransactionEffects
impl Clone for TransactionEffects
Source§fn clone(&self) -> TransactionEffects
fn clone(&self) -> TransactionEffects
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 moreSource§impl Debug for TransactionEffects
impl Debug for TransactionEffects
Source§impl<'de> Deserialize<'de> for TransactionEffects
Available on crate feature serde only.
impl<'de> Deserialize<'de> for TransactionEffects
Available on crate feature
serde only.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 Display for TransactionEffects
impl Display for TransactionEffects
impl Eq for TransactionEffects
Source§impl PartialEq for TransactionEffects
impl PartialEq for TransactionEffects
Source§impl Serialize for TransactionEffects
Available on crate feature serde only.
impl Serialize for TransactionEffects
Available on crate feature
serde only.impl StructuralPartialEq for TransactionEffects
Auto Trait Implementations§
impl Freeze for TransactionEffects
impl RefUnwindSafe for TransactionEffects
impl Send for TransactionEffects
impl Sync for TransactionEffects
impl Unpin for TransactionEffects
impl UnsafeUnpin for TransactionEffects
impl UnwindSafe for TransactionEffects
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