pub struct ExecutionResult {
pub digest: String,
pub effects: Option<Value>,
pub events: Option<Value>,
pub object_changes: Option<Value>,
pub balance_changes: Option<Value>,
}Expand description
Trimmed view of sui_executeTransactionBlock’s response. Full effects /
events / object changes are present in effects / events /
object_changes for callers that want to inspect them.
Fields§
§digest: StringTransaction digest (base58).
effects: Option<Value>Effects block. Includes status, gasUsed, etc.
events: Option<Value>Events emitted by the call.
object_changes: Option<Value>Created/mutated/deleted objects.
balance_changes: Option<Value>Per-coin balance changes.
Implementations§
Source§impl ExecutionResult
impl ExecutionResult
Sourcepub fn check_success(&self) -> Result<(), TaiError>
pub fn check_success(&self) -> Result<(), TaiError>
Returns Ok(()) if the transaction effects report status: success,
otherwise TaiError::TxFailed with the on-chain error string.
Sourcepub fn created_of_type(&self, type_substring: &str) -> Vec<String>
pub fn created_of_type(&self, type_substring: &str) -> Vec<String>
Convenience: collect created objects of a given Move type from the
objectChanges block. Each entry returns the object id string.
Trait Implementations§
Source§impl Clone for ExecutionResult
impl Clone for ExecutionResult
Source§fn clone(&self) -> ExecutionResult
fn clone(&self) -> ExecutionResult
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 ExecutionResult
impl Debug for ExecutionResult
Source§impl<'de> Deserialize<'de> for ExecutionResult
impl<'de> Deserialize<'de> for ExecutionResult
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
Auto Trait Implementations§
impl Freeze for ExecutionResult
impl RefUnwindSafe for ExecutionResult
impl Send for ExecutionResult
impl Sync for ExecutionResult
impl Unpin for ExecutionResult
impl UnsafeUnpin for ExecutionResult
impl UnwindSafe for ExecutionResult
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