Struct bdk_chain::tx_graph::CanonicalTx
source · pub struct CanonicalTx<'a, T, A> {
pub chain_position: ChainPosition<&'a A>,
pub tx_node: TxNode<'a, T, A>,
}
Expand description
A transaction that is included in the chain, or is still in mempool.
Fields§
§chain_position: ChainPosition<&'a A>
How the transaction is observed as (confirmed or unconfirmed).
tx_node: TxNode<'a, T, A>
The transaction node (as part of the graph).
Trait Implementations§
source§impl<'a, T: Clone, A: Clone> Clone for CanonicalTx<'a, T, A>
impl<'a, T: Clone, A: Clone> Clone for CanonicalTx<'a, T, A>
source§fn clone(&self) -> CanonicalTx<'a, T, A>
fn clone(&self) -> CanonicalTx<'a, T, A>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'a, T: Ord, A: Ord> Ord for CanonicalTx<'a, T, A>
impl<'a, T: Ord, A: Ord> Ord for CanonicalTx<'a, T, A>
source§fn cmp(&self, other: &CanonicalTx<'a, T, A>) -> Ordering
fn cmp(&self, other: &CanonicalTx<'a, T, A>) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl<'a, T: PartialEq, A: PartialEq> PartialEq<CanonicalTx<'a, T, A>> for CanonicalTx<'a, T, A>
impl<'a, T: PartialEq, A: PartialEq> PartialEq<CanonicalTx<'a, T, A>> for CanonicalTx<'a, T, A>
source§fn eq(&self, other: &CanonicalTx<'a, T, A>) -> bool
fn eq(&self, other: &CanonicalTx<'a, T, A>) -> bool
source§impl<'a, T: PartialOrd, A: PartialOrd> PartialOrd<CanonicalTx<'a, T, A>> for CanonicalTx<'a, T, A>
impl<'a, T: PartialOrd, A: PartialOrd> PartialOrd<CanonicalTx<'a, T, A>> for CanonicalTx<'a, T, A>
source§fn partial_cmp(&self, other: &CanonicalTx<'a, T, A>) -> Option<Ordering>
fn partial_cmp(&self, other: &CanonicalTx<'a, T, A>) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more