#[non_exhaustive]pub struct ExecutedTransaction {
pub digest: Option<String>,
pub transaction: Option<Transaction>,
pub signatures: Vec<UserSignature>,
pub effects: Option<TransactionEffects>,
pub events: Option<TransactionEvents>,
pub checkpoint: Option<u64>,
pub timestamp: Option<Timestamp>,
pub balance_changes: Vec<BalanceChange>,
pub input_objects: Vec<Object>,
pub output_objects: Vec<Object>,
}
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.digest: Option<String>
The digest of this Transaction.
transaction: Option<Transaction>
The transaction itself.
signatures: Vec<UserSignature>
List of user signatures that are used to authorize the execution of this transaction.
effects: Option<TransactionEffects>
The TransactionEffects
for this transaction.
events: Option<TransactionEvents>
The TransactionEvents
for this transaction.
This field might be empty, even if it was explicitly requested, if the
transaction didn’t produce any events.
sui.types.TransactionEffects.events_digest
is populated if the
transaction produced any events.
checkpoint: Option<u64>
The sequence number for the checkpoint that includes this transaction.
timestamp: Option<Timestamp>
The Unix timestamp of the checkpoint that includes this transaction.
balance_changes: Vec<BalanceChange>
§input_objects: Vec<Object>
Set of input objects used during the execution of this transaction.
output_objects: Vec<Object>
Set of output objects produced from the execution of this transaction.
Implementations§
Source§impl ExecutedTransaction
impl ExecutedTransaction
pub const DIGEST_FIELD: &'static MessageField
pub const TRANSACTION_FIELD: &'static MessageField
pub const SIGNATURES_FIELD: &'static MessageField
pub const EFFECTS_FIELD: &'static MessageField
pub const EVENTS_FIELD: &'static MessageField
pub const CHECKPOINT_FIELD: &'static MessageField
pub const TIMESTAMP_FIELD: &'static MessageField
pub const BALANCE_CHANGES_FIELD: &'static MessageField
pub const INPUT_OBJECTS_FIELD: &'static MessageField
pub const OUTPUT_OBJECTS_FIELD: &'static MessageField
Source§impl ExecutedTransaction
impl ExecutedTransaction
pub fn path_builder() -> ExecutedTransactionFieldPathBuilder
Source§impl ExecutedTransaction
impl ExecutedTransaction
pub const fn const_default() -> Self
Sourcepub fn digest_opt_mut(&mut self) -> Option<&mut String>
pub fn digest_opt_mut(&mut self) -> Option<&mut String>
Sourcepub fn digest_mut(&mut self) -> &mut String
pub fn digest_mut(&mut self) -> &mut String
Returns a mutable reference to digest
.
If the field is unset, it is first initialized with the default value.
Sourcepub fn digest_opt(&self) -> Option<&str>
pub fn digest_opt(&self) -> Option<&str>
Sourcepub fn set_digest<T: Into<String>>(&mut self, field: T)
pub fn set_digest<T: Into<String>>(&mut self, field: T)
Sets digest
with the provided value.
Sourcepub fn with_digest<T: Into<String>>(self, field: T) -> Self
pub fn with_digest<T: Into<String>>(self, field: T) -> Self
Sets digest
with the provided value.
Sourcepub fn transaction(&self) -> &Transaction
pub fn transaction(&self) -> &Transaction
Returns the value of transaction
, or the default value if transaction
is unset.
Sourcepub fn transaction_opt_mut(&mut self) -> Option<&mut Transaction>
pub fn transaction_opt_mut(&mut self) -> Option<&mut Transaction>
Sourcepub fn transaction_mut(&mut self) -> &mut Transaction
pub fn transaction_mut(&mut self) -> &mut Transaction
Returns a mutable reference to transaction
.
If the field is unset, it is first initialized with the default value.
Sourcepub fn transaction_opt(&self) -> Option<&Transaction>
pub fn transaction_opt(&self) -> Option<&Transaction>
Sourcepub fn set_transaction<T: Into<Transaction>>(&mut self, field: T)
pub fn set_transaction<T: Into<Transaction>>(&mut self, field: T)
Sets transaction
with the provided value.
Sourcepub fn with_transaction<T: Into<Transaction>>(self, field: T) -> Self
pub fn with_transaction<T: Into<Transaction>>(self, field: T) -> Self
Sets transaction
with the provided value.
Sourcepub fn signatures(&self) -> &[UserSignature]
pub fn signatures(&self) -> &[UserSignature]
Returns the value of signatures
, or the default value if signatures
is unset.
Sourcepub fn signatures_mut(&mut self) -> &mut Vec<UserSignature>
pub fn signatures_mut(&mut self) -> &mut Vec<UserSignature>
Returns a mutable reference to signatures
.
If the field is unset, it is first initialized with the default value.
Sourcepub fn set_signatures(&mut self, field: Vec<UserSignature>)
pub fn set_signatures(&mut self, field: Vec<UserSignature>)
Sets signatures
with the provided value.
Sourcepub fn with_signatures(self, field: Vec<UserSignature>) -> Self
pub fn with_signatures(self, field: Vec<UserSignature>) -> Self
Sets signatures
with the provided value.
Sourcepub fn effects(&self) -> &TransactionEffects
pub fn effects(&self) -> &TransactionEffects
Returns the value of effects
, or the default value if effects
is unset.
Sourcepub fn effects_opt_mut(&mut self) -> Option<&mut TransactionEffects>
pub fn effects_opt_mut(&mut self) -> Option<&mut TransactionEffects>
Sourcepub fn effects_mut(&mut self) -> &mut TransactionEffects
pub fn effects_mut(&mut self) -> &mut TransactionEffects
Returns a mutable reference to effects
.
If the field is unset, it is first initialized with the default value.
Sourcepub fn effects_opt(&self) -> Option<&TransactionEffects>
pub fn effects_opt(&self) -> Option<&TransactionEffects>
Sourcepub fn set_effects<T: Into<TransactionEffects>>(&mut self, field: T)
pub fn set_effects<T: Into<TransactionEffects>>(&mut self, field: T)
Sets effects
with the provided value.
Sourcepub fn with_effects<T: Into<TransactionEffects>>(self, field: T) -> Self
pub fn with_effects<T: Into<TransactionEffects>>(self, field: T) -> Self
Sets effects
with the provided value.
Sourcepub fn events(&self) -> &TransactionEvents
pub fn events(&self) -> &TransactionEvents
Returns the value of events
, or the default value if events
is unset.
Sourcepub fn events_opt_mut(&mut self) -> Option<&mut TransactionEvents>
pub fn events_opt_mut(&mut self) -> Option<&mut TransactionEvents>
Sourcepub fn events_mut(&mut self) -> &mut TransactionEvents
pub fn events_mut(&mut self) -> &mut TransactionEvents
Returns a mutable reference to events
.
If the field is unset, it is first initialized with the default value.
Sourcepub fn events_opt(&self) -> Option<&TransactionEvents>
pub fn events_opt(&self) -> Option<&TransactionEvents>
Sourcepub fn set_events<T: Into<TransactionEvents>>(&mut self, field: T)
pub fn set_events<T: Into<TransactionEvents>>(&mut self, field: T)
Sets events
with the provided value.
Sourcepub fn with_events<T: Into<TransactionEvents>>(self, field: T) -> Self
pub fn with_events<T: Into<TransactionEvents>>(self, field: T) -> Self
Sets events
with the provided value.
Sourcepub fn checkpoint_opt_mut(&mut self) -> Option<&mut u64>
pub fn checkpoint_opt_mut(&mut self) -> Option<&mut u64>
Sourcepub fn checkpoint_mut(&mut self) -> &mut u64
pub fn checkpoint_mut(&mut self) -> &mut u64
Returns a mutable reference to checkpoint
.
If the field is unset, it is first initialized with the default value.
Sourcepub fn checkpoint_opt(&self) -> Option<u64>
pub fn checkpoint_opt(&self) -> Option<u64>
Sourcepub fn set_checkpoint<T: Into<u64>>(&mut self, field: T)
pub fn set_checkpoint<T: Into<u64>>(&mut self, field: T)
Sets checkpoint
with the provided value.
Sourcepub fn with_checkpoint<T: Into<u64>>(self, field: T) -> Self
pub fn with_checkpoint<T: Into<u64>>(self, field: T) -> Self
Sets checkpoint
with the provided value.
Sourcepub fn timestamp_opt_mut(&mut self) -> Option<&mut Timestamp>
pub fn timestamp_opt_mut(&mut self) -> Option<&mut Timestamp>
Sourcepub fn timestamp_mut(&mut self) -> &mut Timestamp
pub fn timestamp_mut(&mut self) -> &mut Timestamp
Returns a mutable reference to timestamp
.
If the field is unset, it is first initialized with the default value.
Sourcepub fn timestamp_opt(&self) -> Option<&Timestamp>
pub fn timestamp_opt(&self) -> Option<&Timestamp>
Sourcepub fn set_timestamp<T: Into<Timestamp>>(&mut self, field: T)
pub fn set_timestamp<T: Into<Timestamp>>(&mut self, field: T)
Sets timestamp
with the provided value.
Sourcepub fn with_timestamp<T: Into<Timestamp>>(self, field: T) -> Self
pub fn with_timestamp<T: Into<Timestamp>>(self, field: T) -> Self
Sets timestamp
with the provided value.
Sourcepub fn balance_changes(&self) -> &[BalanceChange]
pub fn balance_changes(&self) -> &[BalanceChange]
Returns the value of balance_changes
, or the default value if balance_changes
is unset.
Sourcepub fn balance_changes_mut(&mut self) -> &mut Vec<BalanceChange>
pub fn balance_changes_mut(&mut self) -> &mut Vec<BalanceChange>
Returns a mutable reference to balance_changes
.
If the field is unset, it is first initialized with the default value.
Sourcepub fn set_balance_changes(&mut self, field: Vec<BalanceChange>)
pub fn set_balance_changes(&mut self, field: Vec<BalanceChange>)
Sets balance_changes
with the provided value.
Sourcepub fn with_balance_changes(self, field: Vec<BalanceChange>) -> Self
pub fn with_balance_changes(self, field: Vec<BalanceChange>) -> Self
Sets balance_changes
with the provided value.
Sourcepub fn input_objects(&self) -> &[Object]
pub fn input_objects(&self) -> &[Object]
Returns the value of input_objects
, or the default value if input_objects
is unset.
Sourcepub fn input_objects_mut(&mut self) -> &mut Vec<Object>
pub fn input_objects_mut(&mut self) -> &mut Vec<Object>
Returns a mutable reference to input_objects
.
If the field is unset, it is first initialized with the default value.
Sourcepub fn set_input_objects(&mut self, field: Vec<Object>)
pub fn set_input_objects(&mut self, field: Vec<Object>)
Sets input_objects
with the provided value.
Sourcepub fn with_input_objects(self, field: Vec<Object>) -> Self
pub fn with_input_objects(self, field: Vec<Object>) -> Self
Sets input_objects
with the provided value.
Sourcepub fn output_objects(&self) -> &[Object]
pub fn output_objects(&self) -> &[Object]
Returns the value of output_objects
, or the default value if output_objects
is unset.
Sourcepub fn output_objects_mut(&mut self) -> &mut Vec<Object>
pub fn output_objects_mut(&mut self) -> &mut Vec<Object>
Returns a mutable reference to output_objects
.
If the field is unset, it is first initialized with the default value.
Sourcepub fn set_output_objects(&mut self, field: Vec<Object>)
pub fn set_output_objects(&mut self, field: Vec<Object>)
Sets output_objects
with the provided value.
Sourcepub fn with_output_objects(self, field: Vec<Object>) -> Self
pub fn with_output_objects(self, field: Vec<Object>) -> Self
Sets output_objects
with the provided value.
Trait Implementations§
Source§impl Clone for ExecutedTransaction
impl Clone for ExecutedTransaction
Source§fn clone(&self) -> ExecutedTransaction
fn clone(&self) -> ExecutedTransaction
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for ExecutedTransaction
impl Debug for ExecutedTransaction
Source§impl Default for ExecutedTransaction
impl Default for ExecutedTransaction
§impl<'de> Deserialize<'de> for ExecutedTransaction
impl<'de> Deserialize<'de> for ExecutedTransaction
§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>,
Source§impl Merge<&ExecutedTransaction> for ExecutedTransaction
impl Merge<&ExecutedTransaction> for ExecutedTransaction
fn merge(&mut self, source: &ExecutedTransaction, mask: &FieldMaskTree)
fn merge_from(source: T, mask: &FieldMaskTree) -> Selfwhere
Self: Default,
Source§impl Message for ExecutedTransaction
impl Message for ExecutedTransaction
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.Source§impl MessageFields for ExecutedTransaction
impl MessageFields for ExecutedTransaction
const FIELDS: &'static [&'static MessageField]
Source§impl PartialEq for ExecutedTransaction
impl PartialEq for ExecutedTransaction
§impl Serialize for ExecutedTransaction
impl Serialize for ExecutedTransaction
impl StructuralPartialEq for ExecutedTransaction
Auto Trait Implementations§
impl !Freeze for ExecutedTransaction
impl RefUnwindSafe for ExecutedTransaction
impl Send for ExecutedTransaction
impl Sync for ExecutedTransaction
impl Unpin for ExecutedTransaction
impl UnwindSafe for ExecutedTransaction
Blanket Implementations§
§impl<U> As for U
impl<U> As for U
§fn as_<T>(self) -> Twhere
T: CastFrom<U>,
fn as_<T>(self) -> Twhere
T: CastFrom<U>,
self
to type T
. The semantics of numeric casting with the as
operator are followed, so <T as As>::as_::<U>
can be used in the same way as T as U
for numeric conversions. Read moreSource§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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Conv for T
impl<T> Conv for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
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>
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§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request
§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Layered
].§impl<T> Pipe for Twhere
T: ?Sized,
impl<T> Pipe for Twhere
T: ?Sized,
§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
§fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
self
and passes that borrow into the pipe function. Read more§fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
self
and passes that borrow into the pipe function. Read more§fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
§fn pipe_borrow_mut<'a, B, R>(
&'a mut self,
func: impl FnOnce(&'a mut B) -> R,
) -> R
fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
§fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
self
, then passes self.as_ref()
into the pipe function.§fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
self
, then passes self.as_mut()
into the pipe
function.§fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
self
, then passes self.deref()
into the pipe function.§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§impl<T> Tap for T
impl<T> Tap for T
§fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
Borrow<B>
of a value. Read more§fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
BorrowMut<B>
of a value. Read more§fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
AsRef<R>
view of a value. Read more§fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
AsMut<R>
view of a value. Read more§fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
Deref::Target
of a value. Read more§fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
Deref::Target
of a value. Read more§fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
.tap()
only in debug builds, and is erased in release builds.§fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
.tap_mut()
only in debug builds, and is erased in release
builds.§fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
.tap_borrow()
only in debug builds, and is erased in release
builds.§fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
.tap_borrow_mut()
only in debug builds, and is erased in release
builds.§fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
.tap_ref()
only in debug builds, and is erased in release
builds.§fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
.tap_ref_mut()
only in debug builds, and is erased in release
builds.§fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
.tap_deref()
only in debug builds, and is erased in release
builds.