Struct bdk_chain::ConfirmationBlockTime
source · pub struct ConfirmationBlockTime {
pub block_id: BlockId,
pub confirmation_time: u64,
}
Expand description
Represents the confirmation block and time of a transaction.
Fields§
§block_id: BlockId
The anchor block.
confirmation_time: u64
The confirmation time of the transaction being anchored.
Trait Implementations§
source§impl Anchor for ConfirmationBlockTime
impl Anchor for ConfirmationBlockTime
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 Clone for ConfirmationBlockTime
impl Clone for ConfirmationBlockTime
source§fn clone(&self) -> ConfirmationBlockTime
fn clone(&self) -> ConfirmationBlockTime
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 ConfirmationBlockTime
impl Debug for ConfirmationBlockTime
source§impl Default for ConfirmationBlockTime
impl Default for ConfirmationBlockTime
source§fn default() -> ConfirmationBlockTime
fn default() -> ConfirmationBlockTime
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for ConfirmationBlockTime
impl<'de> Deserialize<'de> for ConfirmationBlockTime
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<ConfirmationBlockTime, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<ConfirmationBlockTime, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Hash for ConfirmationBlockTime
impl Hash for ConfirmationBlockTime
source§impl Ord for ConfirmationBlockTime
impl Ord for ConfirmationBlockTime
source§fn cmp(&self, other: &ConfirmationBlockTime) -> Ordering
fn cmp(&self, other: &ConfirmationBlockTime) -> 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 for ConfirmationBlockTime
impl PartialEq for ConfirmationBlockTime
source§fn eq(&self, other: &ConfirmationBlockTime) -> bool
fn eq(&self, other: &ConfirmationBlockTime) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for ConfirmationBlockTime
impl PartialOrd for ConfirmationBlockTime
source§fn partial_cmp(&self, other: &ConfirmationBlockTime) -> Option<Ordering>
fn partial_cmp(&self, other: &ConfirmationBlockTime) -> 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 moresource§impl Serialize for ConfirmationBlockTime
impl Serialize for ConfirmationBlockTime
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
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 Copy for ConfirmationBlockTime
impl Eq for ConfirmationBlockTime
impl StructuralPartialEq for ConfirmationBlockTime
Auto Trait Implementations§
impl Freeze for ConfirmationBlockTime
impl RefUnwindSafe for ConfirmationBlockTime
impl Send for ConfirmationBlockTime
impl Sync for ConfirmationBlockTime
impl Unpin for ConfirmationBlockTime
impl UnwindSafe for ConfirmationBlockTime
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more