pub struct FinalExecutionOutcome {
pub status: FinalExecutionStatus,
pub transaction: TransactionView,
pub transaction_outcome: ExecutionOutcomeWithId,
pub receipts_outcome: Vec<ExecutionOutcomeWithId>,
}Expand description
Final execution outcome from send_tx RPC.
All fields are required — this type only appears when a transaction has actually
been executed (not for wait_until=NONE responses).
Fields§
§status: FinalExecutionStatusOverall transaction execution result.
transaction: TransactionViewThe transaction that was executed.
transaction_outcome: ExecutionOutcomeWithIdOutcome of the transaction itself.
receipts_outcome: Vec<ExecutionOutcomeWithId>Outcomes of all receipts spawned by the transaction.
Implementations§
Source§impl FinalExecutionOutcome
impl FinalExecutionOutcome
Sourcepub fn is_success(&self) -> bool
pub fn is_success(&self) -> bool
Check if the transaction succeeded.
Sourcepub fn is_failure(&self) -> bool
pub fn is_failure(&self) -> bool
Check if the transaction failed.
Sourcepub fn success_value(&self) -> Option<Vec<u8>>
pub fn success_value(&self) -> Option<Vec<u8>>
Get the success value if present (base64 decoded).
Sourcepub fn success_value_string(&self) -> Option<String>
pub fn success_value_string(&self) -> Option<String>
Get the success value as a string if present.
Sourcepub fn success_value_json<T: DeserializeOwned>(&self) -> Option<T>
pub fn success_value_json<T: DeserializeOwned>(&self) -> Option<T>
Get the success value deserialized as JSON.
Sourcepub fn failure_message(&self) -> Option<String>
pub fn failure_message(&self) -> Option<String>
Get the failure message if present.
Sourcepub fn failure_error(&self) -> Option<&TxExecutionError>
pub fn failure_error(&self) -> Option<&TxExecutionError>
Get the typed execution error if present.
Sourcepub fn transaction_hash(&self) -> &CryptoHash
pub fn transaction_hash(&self) -> &CryptoHash
Get the transaction hash.
Sourcepub fn total_gas_used(&self) -> Gas
pub fn total_gas_used(&self) -> Gas
Get total gas used across all receipts.
Trait Implementations§
Source§impl Clone for FinalExecutionOutcome
impl Clone for FinalExecutionOutcome
Source§fn clone(&self) -> FinalExecutionOutcome
fn clone(&self) -> FinalExecutionOutcome
Returns a duplicate 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 Debug for FinalExecutionOutcome
impl Debug for FinalExecutionOutcome
Source§impl<'de> Deserialize<'de> for FinalExecutionOutcome
impl<'de> Deserialize<'de> for FinalExecutionOutcome
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 FinalExecutionOutcome
impl RefUnwindSafe for FinalExecutionOutcome
impl Send for FinalExecutionOutcome
impl Sync for FinalExecutionOutcome
impl Unpin for FinalExecutionOutcome
impl UnsafeUnpin for FinalExecutionOutcome
impl UnwindSafe for FinalExecutionOutcome
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