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§
Ok(ValidTransaction)
Contains the success value
Err(TransactionValidityError)
Contains the error value
Trait Implementations§
source§impl From<InvalidTransaction> for TransactionValidity
impl From<InvalidTransaction> for TransactionValidity
source§fn from(invalid_transaction: InvalidTransaction) -> Self
fn from(invalid_transaction: InvalidTransaction) -> Self
Converts to this type from the input type.
source§impl From<UnknownTransaction> for TransactionValidity
impl From<UnknownTransaction> for TransactionValidity
source§fn from(unknown_transaction: UnknownTransaction) -> Self
fn from(unknown_transaction: UnknownTransaction) -> Self
Converts to this type from the input type.
source§impl From<ValidTransactionBuilder> for TransactionValidity
impl From<ValidTransactionBuilder> for TransactionValidity
source§fn from(builder: ValidTransactionBuilder) -> Self
fn from(builder: ValidTransactionBuilder) -> Self
Converts to this type from the input type.