Struct sui_sdk_types::types::TransactionEffectsV1
source · pub struct TransactionEffectsV1 {Show 15 fields
pub status: ExecutionStatus,
pub epoch: EpochId,
pub gas_used: GasCostSummary,
pub modified_at_versions: Vec<ModifiedAtVersion>,
pub shared_objects: Vec<ObjectReference>,
pub transaction_digest: TransactionDigest,
pub created: Vec<ObjectReferenceWithOwner>,
pub mutated: Vec<ObjectReferenceWithOwner>,
pub unwrapped: Vec<ObjectReferenceWithOwner>,
pub deleted: Vec<ObjectReference>,
pub unwrapped_then_deleted: Vec<ObjectReference>,
pub wrapped: Vec<ObjectReference>,
pub gas_object: ObjectReferenceWithOwner,
pub events_digest: Option<TransactionEventsDigest>,
pub dependencies: Vec<TransactionDigest>,
}
Expand description
The response from processing a transaction or a certified transaction
Fields§
§status: ExecutionStatus
The status of the execution
epoch: EpochId
The epoch when this transaction was executed.
gas_used: GasCostSummary
§modified_at_versions: Vec<ModifiedAtVersion>
The version that every modified (mutated or deleted) object had before it was modified by this transaction.
The object references of the shared objects used in this transaction. Empty if no shared objects were used.
transaction_digest: TransactionDigest
The transaction digest
created: Vec<ObjectReferenceWithOwner>
ObjectReference and owner of new objects created.
mutated: Vec<ObjectReferenceWithOwner>
ObjectReference and owner of mutated objects, including gas object.
unwrapped: Vec<ObjectReferenceWithOwner>
ObjectReference and owner of objects that are unwrapped in this transaction. Unwrapped objects are objects that were wrapped into other objects in the past, and just got extracted out.
deleted: Vec<ObjectReference>
Object Refs of objects now deleted (the new refs).
unwrapped_then_deleted: Vec<ObjectReference>
Object refs of objects previously wrapped in other objects but now deleted.
wrapped: Vec<ObjectReference>
Object refs of objects now wrapped in other objects.
gas_object: ObjectReferenceWithOwner
The updated gas object reference. Have a dedicated field for convenient access. It’s also included in mutated.
events_digest: Option<TransactionEventsDigest>
The digest of the events emitted during execution, can be None if the transaction does not emit any event.
dependencies: Vec<TransactionDigest>
The set of transaction digests this transaction depends on.
Implementations§
source§impl TransactionEffectsV1
impl TransactionEffectsV1
sourcepub fn status(&self) -> &ExecutionStatus
pub fn status(&self) -> &ExecutionStatus
The status of the execution
sourcepub fn gas_summary(&self) -> &GasCostSummary
pub fn gas_summary(&self) -> &GasCostSummary
The gas used in this transaction.
Trait Implementations§
source§impl Clone for TransactionEffectsV1
impl Clone for TransactionEffectsV1
source§fn clone(&self) -> TransactionEffectsV1
fn clone(&self) -> TransactionEffectsV1
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for TransactionEffectsV1
impl Debug for TransactionEffectsV1
source§impl<'de> Deserialize<'de> for TransactionEffectsV1
Available on crate feature serde
only.
impl<'de> Deserialize<'de> for TransactionEffectsV1
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>,
source§impl JsonSchema for TransactionEffectsV1
impl JsonSchema for TransactionEffectsV1
source§fn schema_name() -> String
fn schema_name() -> String
source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref
keyword. Read moresource§impl PartialEq for TransactionEffectsV1
impl PartialEq for TransactionEffectsV1
source§impl Serialize for TransactionEffectsV1
Available on crate feature serde
only.
impl Serialize for TransactionEffectsV1
serde
only.impl Eq for TransactionEffectsV1
impl StructuralPartialEq for TransactionEffectsV1
Auto Trait Implementations§
impl Freeze for TransactionEffectsV1
impl RefUnwindSafe for TransactionEffectsV1
impl Send for TransactionEffectsV1
impl Sync for TransactionEffectsV1
impl Unpin for TransactionEffectsV1
impl UnwindSafe for TransactionEffectsV1
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,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)