Struct diem_types::transaction::AccountTransactionsWithProof [−][src]
pub struct AccountTransactionsWithProof<T>(pub Vec<TransactionWithProof<T>>);
Expand description
A list of transactions under an account that are contiguous by sequence number and include proofs.
Tuple Fields
0: Vec<TransactionWithProof<T>>
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
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
impl<T: PartialEq> PartialEq<AccountTransactionsWithProof<T>> for AccountTransactionsWithProof<T>
impl<T: PartialEq> PartialEq<AccountTransactionsWithProof<T>> for AccountTransactionsWithProof<T>
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<T> RefUnwindSafe for AccountTransactionsWithProof<T> where
T: RefUnwindSafe,
impl<T> Send for AccountTransactionsWithProof<T> where
T: Send,
impl<T> Sync for AccountTransactionsWithProof<T> where
T: Sync,
impl<T> Unpin for AccountTransactionsWithProof<T> where
T: Unpin,
impl<T> UnwindSafe for AccountTransactionsWithProof<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Generates a hash used only for tests.