pub trait DepositTxEnvelope {
type DepositTx: DepositTransaction;
// Required methods
fn is_deposit(&self) -> bool;
fn as_deposit(&self) -> Option<&Sealed<Self::DepositTx>>;
}Expand description
Transaction envelope that encompasses a DepositTransaction.
Required Associated Types§
Sourcetype DepositTx: DepositTransaction
type DepositTx: DepositTransaction
Deposit transaction.
Required Methods§
Sourcefn is_deposit(&self) -> bool
fn is_deposit(&self) -> bool
Returns true if the transaction is a deposit transaction.
Sourcefn as_deposit(&self) -> Option<&Sealed<Self::DepositTx>>
fn as_deposit(&self) -> Option<&Sealed<Self::DepositTx>>
Returns DepositTransaction if transaction is a deposit transaction.