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: TransactionAccumulatorProofThe accumulator proof from ledger info root to leaf that authenticates the hash of the
TransactionInfo object.
transaction_info: TThe TransactionInfo object at the leaf of the accumulator.
Implementations§
Source§impl<T: TransactionInfoTrait> TransactionInfoWithProof<T>
impl<T: TransactionInfoTrait> TransactionInfoWithProof<T>
Sourcepub 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.
Sourcepub fn ledger_info_to_transaction_info_proof(
&self,
) -> &TransactionAccumulatorProof
pub fn ledger_info_to_transaction_info_proof( &self, ) -> &TransactionAccumulatorProof
Returns the ledger_info_to_transaction_info_proof object in this proof.
Sourcepub fn transaction_info(&self) -> &T
pub fn transaction_info(&self) -> &T
Returns the transaction_info object in this proof.
Trait Implementations§
Source§impl<T: Clone> Clone for TransactionInfoWithProof<T>
impl<T: Clone> Clone for TransactionInfoWithProof<T>
Source§fn clone(&self) -> TransactionInfoWithProof<T>
fn clone(&self) -> TransactionInfoWithProof<T>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<T: Debug> Debug for TransactionInfoWithProof<T>
impl<T: Debug> Debug for TransactionInfoWithProof<T>
Source§impl<'de, T> Deserialize<'de> for TransactionInfoWithProof<T>where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for TransactionInfoWithProof<T>where
T: Deserialize<'de>,
Source§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: Eq> Eq for TransactionInfoWithProof<T>
Source§impl<T: PartialEq> PartialEq for TransactionInfoWithProof<T>
impl<T: PartialEq> PartialEq for TransactionInfoWithProof<T>
Source§impl<T> Serialize for TransactionInfoWithProof<T>where
T: Serialize,
impl<T> Serialize for TransactionInfoWithProof<T>where
T: Serialize,
impl<T: PartialEq> StructuralPartialEq for TransactionInfoWithProof<T>
Auto Trait Implementations§
impl<T> Freeze for TransactionInfoWithProof<T>where
T: Freeze,
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> UnsafeUnpin for TransactionInfoWithProof<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for TransactionInfoWithProof<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreimpl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T> TestOnlyHash for T
impl<T> TestOnlyHash for T
Source§fn test_only_hash(&self) -> HashValue
fn test_only_hash(&self) -> HashValue
Generates a hash used only for tests.