Struct near_primitives::transaction::ExecutionOutcome
source · pub struct ExecutionOutcome {
pub logs: Vec<LogEntry>,
pub receipt_ids: Vec<CryptoHash>,
pub gas_burnt: Gas,
pub compute_usage: Option<Compute>,
pub tokens_burnt: Balance,
pub executor_id: AccountId,
pub status: ExecutionStatus,
pub metadata: ExecutionMetadata,
}
Expand description
Execution outcome for one signed transaction or one receipt.
Fields§
§logs: Vec<LogEntry>
Logs from this transaction or receipt.
receipt_ids: Vec<CryptoHash>
Receipt IDs generated by this transaction or receipt.
gas_burnt: Gas
The amount of the gas burnt by the given transaction or receipt.
compute_usage: Option<Compute>
The amount of compute time spent by the given transaction or receipt.
tokens_burnt: Balance
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.
executor_id: AccountId
The id of the account on which the execution happens. For transaction this is signer_id, for receipt this is receiver_id.
status: ExecutionStatus
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
metadata: ExecutionMetadata
Execution metadata, versioned
Trait Implementations§
source§impl BorshDeserialize for ExecutionOutcome
impl BorshDeserialize for ExecutionOutcome
fn deserialize_reader<__R: Read>(reader: &mut __R) -> Result<Self, Error>
source§fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
source§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_reader<R>(reader: &mut R) -> Result<Self, Error>where
R: Read,
source§impl BorshSerialize for ExecutionOutcome
impl BorshSerialize for ExecutionOutcome
source§impl Clone for ExecutionOutcome
impl Clone for ExecutionOutcome
source§fn clone(&self) -> ExecutionOutcome
fn clone(&self) -> ExecutionOutcome
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ExecutionOutcome
impl Debug for ExecutionOutcome
source§impl Default for ExecutionOutcome
impl Default for ExecutionOutcome
source§fn default() -> Self
fn default() -> Self
Return ExecutionOutcome { logs: Default::default(), receipt_ids: Default::default(), gas_burnt: Default::default(), compute_usage: Default::default(), tokens_burnt: Default::default(), executor_id: "test".parse().unwrap(), status: Default::default(), metadata: Default::default() }
source§impl From<&ExecutionOutcome> for PartialExecutionOutcome
impl From<&ExecutionOutcome> for PartialExecutionOutcome
source§fn from(outcome: &ExecutionOutcome) -> Self
fn from(outcome: &ExecutionOutcome) -> Self
source§impl From<ExecutionOutcome> for ExecutionOutcomeView
impl From<ExecutionOutcome> for ExecutionOutcomeView
source§fn from(outcome: ExecutionOutcome) -> Self
fn from(outcome: ExecutionOutcome) -> Self
source§impl PartialEq for ExecutionOutcome
impl PartialEq for ExecutionOutcome
source§fn eq(&self, other: &ExecutionOutcome) -> bool
fn eq(&self, other: &ExecutionOutcome) -> bool
self
and other
values to be equal, and is used
by ==
.impl Eq for ExecutionOutcome
impl StructuralPartialEq for ExecutionOutcome
Auto Trait Implementations§
impl Freeze for ExecutionOutcome
impl RefUnwindSafe for ExecutionOutcome
impl Send for ExecutionOutcome
impl Sync for ExecutionOutcome
impl Unpin for ExecutionOutcome
impl UnwindSafe for ExecutionOutcome
Blanket Implementations§
source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata ) -> <T as Pointee>::Metadata
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
source§impl<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more