Struct diem_types::transaction::AccountTransactionsWithProof [−][src]
pub struct AccountTransactionsWithProof(pub Vec<TransactionWithProof>);Expand description
A list of transactions under an account that are contiguous by sequence number and include proofs.
Tuple Fields
0: Vec<TransactionWithProof>Implementations
pub fn verify(
&self,
ledger_info: &LedgerInfo,
account: AccountAddress,
start_seq_num: u64,
limit: u64,
include_events: bool,
ledger_version: Version
) -> Result<()>
pub fn verify(
&self,
ledger_info: &LedgerInfo,
account: AccountAddress,
start_seq_num: u64,
limit: u64,
include_events: bool,
ledger_version: Version
) -> Result<()>
- Verify all transactions are consistent with the given ledger info.
- All transactions were sent by
account. - The transactions are contiguous by sequence number, starting at
start_seq_num. - No more transactions than limit.
- Events are present when requested (and not present when not requested).
- Transactions are not newer than requested ledger version.
Trait Implementations
type Parameters = <Vec<TransactionWithProof> as Arbitrary>::Parameters
type Parameters = <Vec<TransactionWithProof> as Arbitrary>::Parameters
The type of parameters that arbitrary_with accepts for configuration
of the generated Strategy. Parameters must implement Default. Read more
type Strategy = Map<<Vec<TransactionWithProof> as Arbitrary>::Strategy, fn(_: Vec<TransactionWithProof>) -> Self>
type Strategy = Map<<Vec<TransactionWithProof> as Arbitrary>::Strategy, fn(_: Vec<TransactionWithProof>) -> Self>
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
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Auto Trait Implementations
impl Send for AccountTransactionsWithProof
impl Sync for AccountTransactionsWithProof
impl Unpin for AccountTransactionsWithProof
impl UnwindSafe for AccountTransactionsWithProof
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key and return true if they are equal.
type Output = T
type Output = T
Should always be Self
Generates a hash used only for tests.