Struct diem_sdk::types::transaction::AccountTransactionsWithProof [−][src]
pub struct AccountTransactionsWithProof<T>(pub Vec<TransactionWithProof<T>, Global>);
Expand description
A list of transactions under an account that are contiguous by sequence number and include proofs.
Tuple Fields
0: Vec<TransactionWithProof<T>, Global>
Implementations
pub fn new(
txns_with_proofs: Vec<TransactionWithProof<T>, Global>
) -> AccountTransactionsWithProof<T>
pub fn inner(&self) -> &[TransactionWithProof<T>]ⓘ
- 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
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<AccountTransactionsWithProof<T>, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<AccountTransactionsWithProof<T>, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl<T> PartialEq<AccountTransactionsWithProof<T>> for AccountTransactionsWithProof<T> where
T: PartialEq<T>,
impl<T> PartialEq<AccountTransactionsWithProof<T>> for AccountTransactionsWithProof<T> where
T: PartialEq<T>,
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl<'_> TryFrom<&'_ AccountTransactionsWithProof<TransactionInfo>> for AccountTransactionsWithProofView
impl<'_> TryFrom<&'_ AccountTransactionsWithProof<TransactionInfo>> for AccountTransactionsWithProofView
Performs the conversion.
impl<'_> TryFrom<&'_ AccountTransactionsWithProofView> for AccountTransactionsWithProof<TransactionInfo>
impl<'_> TryFrom<&'_ AccountTransactionsWithProofView> for AccountTransactionsWithProof<TransactionInfo>
Performs the conversion.
pub fn try_from(
acct_txs: AccountTransactionsWithProof<TransactionInfo>
) -> Result<TransactionListView, <TransactionListView as TryFrom<AccountTransactionsWithProof<TransactionInfo>>>::Error>
pub fn try_from(
acct_txs: AccountTransactionsWithProof<TransactionInfo>
) -> Result<TransactionListView, <TransactionListView as TryFrom<AccountTransactionsWithProof<TransactionInfo>>>::Error>
Performs the conversion.
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
Compare self to key
and return true
if they are equal.
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Generates a hash used only for tests.
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more