Struct bdk_chain::ConfirmationTimeHeightAnchor
source · pub struct ConfirmationTimeHeightAnchor {
pub confirmation_height: u32,
pub confirmation_time: u64,
pub anchor_block: BlockId,
}
Expand description
Fields§
§confirmation_height: u32
The confirmation height of the transaction being anchored.
confirmation_time: u64
The confirmation time of the transaction being anchored.
anchor_block: BlockId
The anchor block.
Trait Implementations§
source§impl Anchor for ConfirmationTimeHeightAnchor
impl Anchor for ConfirmationTimeHeightAnchor
source§fn anchor_block(&self) -> BlockId
fn anchor_block(&self) -> BlockId
Returns the
BlockId
that the associated blockchain data is “anchored” in.source§fn confirmation_height_upper_bound(&self) -> u32
fn confirmation_height_upper_bound(&self) -> u32
Get the upper bound of the chain data’s confirmation height. Read more
source§impl AnchorFromBlockPosition for ConfirmationTimeHeightAnchor
impl AnchorFromBlockPosition for ConfirmationTimeHeightAnchor
source§fn from_block_position(block: &Block, block_id: BlockId, _tx_pos: usize) -> Self
fn from_block_position(block: &Block, block_id: BlockId, _tx_pos: usize) -> Self
Construct the anchor from a given
block
, block height and tx_pos
within the block.source§impl Clone for ConfirmationTimeHeightAnchor
impl Clone for ConfirmationTimeHeightAnchor
source§fn clone(&self) -> ConfirmationTimeHeightAnchor
fn clone(&self) -> ConfirmationTimeHeightAnchor
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 Debug for ConfirmationTimeHeightAnchor
impl Debug for ConfirmationTimeHeightAnchor
source§impl Default for ConfirmationTimeHeightAnchor
impl Default for ConfirmationTimeHeightAnchor
source§fn default() -> ConfirmationTimeHeightAnchor
fn default() -> ConfirmationTimeHeightAnchor
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for ConfirmationTimeHeightAnchor
impl<'de> Deserialize<'de> for ConfirmationTimeHeightAnchor
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
source§impl Hash for ConfirmationTimeHeightAnchor
impl Hash for ConfirmationTimeHeightAnchor
source§impl Ord for ConfirmationTimeHeightAnchor
impl Ord for ConfirmationTimeHeightAnchor
source§fn cmp(&self, other: &ConfirmationTimeHeightAnchor) -> Ordering
fn cmp(&self, other: &ConfirmationTimeHeightAnchor) -> 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 PartialEq<ConfirmationTimeHeightAnchor> for ConfirmationTimeHeightAnchor
impl PartialEq<ConfirmationTimeHeightAnchor> for ConfirmationTimeHeightAnchor
source§fn eq(&self, other: &ConfirmationTimeHeightAnchor) -> bool
fn eq(&self, other: &ConfirmationTimeHeightAnchor) -> bool
source§impl PartialOrd<ConfirmationTimeHeightAnchor> for ConfirmationTimeHeightAnchor
impl PartialOrd<ConfirmationTimeHeightAnchor> for ConfirmationTimeHeightAnchor
source§fn partial_cmp(&self, other: &ConfirmationTimeHeightAnchor) -> Option<Ordering>
fn partial_cmp(&self, other: &ConfirmationTimeHeightAnchor) -> 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