pub struct BroadcastedTxInfo {
pub txid: Txid,
pub tx: Vec<u8>,
pub created_at: TimestampMs,
pub total_outputs: Amount,
pub output_destinations: Vec<String>,
pub inputs: Vec<String>,
pub confirmation_block_height: Option<u32>,
}Fields§
§txid: Txid(PK)
tx: Vec<u8>Consensus-encoded bitcoin::Transaction.
created_at: TimestampMsWhen this tx was broadcasted.
total_outputs: AmountTotal amount from transaction.
output_destinations: Vec<String>Destination addresses of the transaction.
inputs: Vec<String>Previous outpoints of the transaction.
confirmation_block_height: Option<u32>Confirmation block height of transaction.
Implementations§
Source§impl BroadcastedTxInfo
impl BroadcastedTxInfo
pub fn from_broadcasted_tx( broadcasted_tx: BroadcastedTx, network: Network, confirmation_block_height: Option<u32>, ) -> Result<Self>
Trait Implementations§
Source§impl Clone for BroadcastedTxInfo
impl Clone for BroadcastedTxInfo
Source§fn clone(&self) -> BroadcastedTxInfo
fn clone(&self) -> BroadcastedTxInfo
Returns a duplicate 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 BroadcastedTxInfo
impl Debug for BroadcastedTxInfo
Source§impl<'de> Deserialize<'de> for BroadcastedTxInfo
impl<'de> Deserialize<'de> for BroadcastedTxInfo
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 PartialEq for BroadcastedTxInfo
impl PartialEq for BroadcastedTxInfo
Source§impl Serialize for BroadcastedTxInfo
impl Serialize for BroadcastedTxInfo
impl StructuralPartialEq for BroadcastedTxInfo
Auto Trait Implementations§
impl Freeze for BroadcastedTxInfo
impl RefUnwindSafe for BroadcastedTxInfo
impl Send for BroadcastedTxInfo
impl Sync for BroadcastedTxInfo
impl Unpin for BroadcastedTxInfo
impl UnsafeUnpin for BroadcastedTxInfo
impl UnwindSafe for BroadcastedTxInfo
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