Struct ConfirmationBlockTime
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
§impl Clone for ConfirmationBlockTime
impl Clone for ConfirmationBlockTime
§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 more§impl Debug for ConfirmationBlockTime
impl Debug for ConfirmationBlockTime
§impl Default for ConfirmationBlockTime
impl Default for ConfirmationBlockTime
§fn default() -> ConfirmationBlockTime
fn default() -> ConfirmationBlockTime
Returns the “default value” for a type. Read more
§impl<'de> Deserialize<'de> for ConfirmationBlockTime
impl<'de> Deserialize<'de> for ConfirmationBlockTime
§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 From<TxPosInBlock<'_>> for ConfirmationBlockTime
impl From<TxPosInBlock<'_>> for ConfirmationBlockTime
Source§fn from(pos: TxPosInBlock<'_>) -> Self
fn from(pos: TxPosInBlock<'_>) -> Self
Converts to this type from the input type.
§impl Hash for ConfirmationBlockTime
impl Hash for ConfirmationBlockTime
§impl Ord for ConfirmationBlockTime
impl Ord for ConfirmationBlockTime
§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
§impl PartialEq for ConfirmationBlockTime
impl PartialEq for ConfirmationBlockTime
§impl PartialOrd for ConfirmationBlockTime
impl PartialOrd for ConfirmationBlockTime
§impl Serialize for ConfirmationBlockTime
impl Serialize for ConfirmationBlockTime
§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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§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