Struct near_sdk_sim::ExecutionResult [−][src]
pub struct ExecutionResult { /* fields omitted */ }
An ExecutionResult is created by a UserAccount submitting a transaction. It wraps an ExecutionOutcome which is the same object returned from an RPC call.
Implementations
impl ExecutionResult
[src]
impl ExecutionResult
[src]pub fn unwrap_json_value(&self) -> Value
[src]
Interpret the SuccessValue as a JSON value
pub fn unwrap_borsh<T: BorshDeserialize>(&self) -> T
[src]
Deserialize SuccessValue from Borsh
pub fn unwrap_json<T: DeserializeOwned>(&self) -> T
[src]
Deserialize SuccessValue from JSON
pub fn is_ok(&self) -> bool
[src]
Check if transaction was successful
pub fn has_value(&self) -> bool
[src]
Test whether there is a SuccessValue
pub fn assert_success(&self)
[src]
Asserts that the outcome is successful
pub fn lookup_hash(&self, hash: &CryptoHash) -> Option<ExecutionResult>
[src]
Lookup an execution result from a hash
pub fn outcome(&self) -> &ExecutionOutcome
[src]
Reference to internal ExecutionOutcome
pub fn get_receipt_results(&self) -> Vec<Option<ExecutionResult>>
[src]
Return results of promises from the receipt_ids
in the ExecutionOutcome
pub fn promise_results(&self) -> Vec<Option<ExecutionResult>>
[src]
Return the results of any promises created since the last transaction
pub fn promise_errors(&self) -> Vec<Option<ExecutionResult>>
[src]
pub fn status(&self) -> ExecutionStatus
[src]
Execution status. Contains the result in case of successful execution. NOTE: Should be the latest field since it contains unparsable by light client ExecutionStatus::Failure
pub fn gas_burnt(&self) -> Gas
[src]
The amount of the gas burnt by the given transaction or receipt.
pub fn tokens_burnt(&self) -> u128
[src]
The amount of tokens burnt corresponding to the burnt gas amount.
This value doesn’t always equal to the gas_burnt
multiplied by the gas price, because
the prepaid gas price might be lower than the actual gas price and it creates a deficit.
pub fn logs(&self) -> &Vec<String>
[src]
Logs from this transaction or receipt.
pub fn executor_id(&self) -> &AccountId
[src]
The id of the account on which the execution happens. For transaction this is signer_id, for receipt this is receiver_id.
pub fn receipt_ids(&self) -> &Vec<CryptoHash>
[src]
Receipt IDs generated by this transaction or receipt.
pub fn profile_data(&self) -> ProfileData
[src]
Trait Implementations
impl Clone for ExecutionResult
[src]
impl Clone for ExecutionResult
[src]fn clone(&self) -> ExecutionResult
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Default for ExecutionResult
[src]
impl Default for ExecutionResult
[src]Auto Trait Implementations
impl !RefUnwindSafe for ExecutionResult
impl !RefUnwindSafe for ExecutionResult
impl !Send for ExecutionResult
impl !Send for ExecutionResult
impl !Sync for ExecutionResult
impl !Sync for ExecutionResult
impl Unpin for ExecutionResult
impl Unpin for ExecutionResult
impl !UnwindSafe for ExecutionResult
impl !UnwindSafe for ExecutionResult
Blanket Implementations
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,