Struct unc_primitives::views::FinalExecutionOutcomeView
source · pub struct FinalExecutionOutcomeView {
pub status: FinalExecutionStatus,
pub transaction: SignedTransactionView,
pub transaction_outcome: ExecutionOutcomeWithIdView,
pub receipts_outcome: Vec<ExecutionOutcomeWithIdView>,
}Expand description
Execution outcome of the transaction and all of subsequent the receipts. Could be not finalised yet
Fields§
§status: FinalExecutionStatusExecution status defined by chain.rs:get_final_transaction_result FinalExecutionStatus::NotStarted - the tx is not converted to the receipt yet FinalExecutionStatus::Started - we have at least 1 receipt, but the first leaf receipt_id (using dfs) hasn’t finished the execution FinalExecutionStatus::Failure - the result of the first leaf receipt_id FinalExecutionStatus::SuccessValue - the result of the first leaf receipt_id
transaction: SignedTransactionViewSigned Transaction
transaction_outcome: ExecutionOutcomeWithIdViewThe execution outcome of the signed transaction.
receipts_outcome: Vec<ExecutionOutcomeWithIdView>The execution outcome of receipts.
Implementations§
source§impl FinalExecutionOutcomeView
impl FinalExecutionOutcomeView
sourcepub fn assert_success(&self)
pub fn assert_success(&self)
Check transaction and all transitive receipts for success status.
Trait Implementations§
source§impl BorshDeserialize for FinalExecutionOutcomeView
impl BorshDeserialize for FinalExecutionOutcomeView
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>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes.
source§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
Deserialize this instance from a slice of bytes.
fn try_from_reader<R>(reader: &mut R) -> Result<Self, Error>where
R: Read,
source§impl Clone for FinalExecutionOutcomeView
impl Clone for FinalExecutionOutcomeView
source§fn clone(&self) -> FinalExecutionOutcomeView
fn clone(&self) -> FinalExecutionOutcomeView
Returns a copy 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 FinalExecutionOutcomeView
impl Debug for FinalExecutionOutcomeView
source§impl<'de> Deserialize<'de> for FinalExecutionOutcomeView
impl<'de> Deserialize<'de> for FinalExecutionOutcomeView
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
source§impl PartialEq for FinalExecutionOutcomeView
impl PartialEq for FinalExecutionOutcomeView
source§fn eq(&self, other: &FinalExecutionOutcomeView) -> bool
fn eq(&self, other: &FinalExecutionOutcomeView) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for FinalExecutionOutcomeView
impl StructuralPartialEq for FinalExecutionOutcomeView
Auto Trait Implementations§
impl Freeze for FinalExecutionOutcomeView
impl RefUnwindSafe for FinalExecutionOutcomeView
impl Send for FinalExecutionOutcomeView
impl Sync for FinalExecutionOutcomeView
impl Unpin for FinalExecutionOutcomeView
impl UnwindSafe for FinalExecutionOutcomeView
Blanket Implementations§
source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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
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
Compare self to
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
Compare self to
key and return true if they are equal.