pub struct TxStatus {
pub confirmed: bool,
pub block_height: Option<u32>,
pub block_hash: Option<BlockHash>,
pub block_time: Option<u64>,
}Expand description
The confirmation status of a Transaction.
Fields§
§confirmed: boolWhether the Transaction is confirmed or not.
block_height: Option<u32>The block height that confirmed the Transaction.
block_hash: Option<BlockHash>The BlockHash of the block that confirmed the Transaction.
None if the Transaction was confirmed by the genesis block.
block_time: Option<u64>The UNIX timestamp of the block that confirmed the Transaction, as claimed by the
miner.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TxStatus
impl<'de> Deserialize<'de> for TxStatus
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 Eq for TxStatus
impl StructuralPartialEq for TxStatus
Auto Trait Implementations§
impl Freeze for TxStatus
impl RefUnwindSafe for TxStatus
impl Send for TxStatus
impl Sync for TxStatus
impl Unpin for TxStatus
impl UnsafeUnpin for TxStatus
impl UnwindSafe for TxStatus
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