Struct near_sdk_sim::ExecutionResult [−][src]
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]
fn clone(&self) -> ExecutionResult
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for ExecutionResult
[src]
impl Default for ExecutionResult
[src]
Auto Trait Implementations
impl !RefUnwindSafe for ExecutionResult
impl !Send for ExecutionResult
impl !Sync for ExecutionResult
impl Unpin for ExecutionResult
impl !UnwindSafe for ExecutionResult
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> 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, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,