Type Alias sp_runtime::transaction_validity::TransactionValidity

source ·
pub type TransactionValidity = Result<ValidTransaction, TransactionValidityError>;
Expand description

Information on a transaction’s validity and, if valid, on how it relates to other transactions.

Aliased Type§

enum TransactionValidity {
    Ok(ValidTransaction),
    Err(TransactionValidityError),
}

Variants§

§1.0.0

Ok(ValidTransaction)

Contains the success value

§1.0.0

Err(TransactionValidityError)

Contains the error value

Trait Implementations§

source§

impl From<InvalidTransaction> for TransactionValidity

source§

fn from(invalid_transaction: InvalidTransaction) -> Self

Converts to this type from the input type.
source§

impl From<UnknownTransaction> for TransactionValidity

source§

fn from(unknown_transaction: UnknownTransaction) -> Self

Converts to this type from the input type.
source§

impl From<ValidTransactionBuilder> for TransactionValidity

source§

fn from(builder: ValidTransactionBuilder) -> Self

Converts to this type from the input type.