Struct diem_types::proof::definition::TransactionInfoWithProof [−][src]
pub struct TransactionInfoWithProof<T> {
pub ledger_info_to_transaction_info_proof: TransactionAccumulatorProof,
pub transaction_info: T,
}
Expand description
TransactionInfo
and a TransactionAccumulatorProof
connecting it to the ledger root.
Fields
ledger_info_to_transaction_info_proof: TransactionAccumulatorProof
The accumulator proof from ledger info root to leaf that authenticates the hash of the
TransactionInfo
object.
transaction_info: T
The TransactionInfo
object at the leaf of the accumulator.
Implementations
pub fn new(
ledger_info_to_transaction_info_proof: TransactionAccumulatorProof,
transaction_info: T
) -> Self
pub fn new(
ledger_info_to_transaction_info_proof: TransactionAccumulatorProof,
transaction_info: T
) -> Self
Constructs a new TransactionWithProof
object using given
ledger_info_to_transaction_info_proof
.
Returns the ledger_info_to_transaction_info_proof
object in this proof.
Returns the transaction_info
object in this proof.
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
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 TransactionInfoWithProof<T> where
T: RefUnwindSafe,
impl<T> Send for TransactionInfoWithProof<T> where
T: Send,
impl<T> Sync for TransactionInfoWithProof<T> where
T: Sync,
impl<T> Unpin for TransactionInfoWithProof<T> where
T: Unpin,
impl<T> UnwindSafe for TransactionInfoWithProof<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Generates a hash used only for tests.