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]

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 Debug for ExecutionResult[src]

impl Default for ExecutionResult[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,