pub struct TxNotification {
pub checkpoint_txs: Option<HashMap<String, TxData>>,
pub spendable_vtxos: Option<Vec<Vtxo>>,
pub spent_vtxos: Option<Vec<Vtxo>>,
pub swept_vtxos: Option<Vec<Outpoint>>,
pub tx: Option<String>,
pub txid: Option<String>,
}Fields§
§checkpoint_txs: Option<HashMap<String, TxData>>This field is set only in case of offchain tx. key: outpoint, value: checkpoint txid
spendable_vtxos: Option<Vec<Vtxo>>§spent_vtxos: Option<Vec<Vtxo>>§swept_vtxos: Option<Vec<Outpoint>>§tx: Option<String>§txid: Option<String>Implementations§
Source§impl TxNotification
impl TxNotification
pub fn new() -> TxNotification
Trait Implementations§
Source§impl Clone for TxNotification
impl Clone for TxNotification
Source§fn clone(&self) -> TxNotification
fn clone(&self) -> TxNotification
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TxNotification
impl Debug for TxNotification
Source§impl Default for TxNotification
impl Default for TxNotification
Source§fn default() -> TxNotification
fn default() -> TxNotification
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TxNotification
impl<'de> Deserialize<'de> for TxNotification
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 TxNotification
impl PartialEq for TxNotification
Source§fn eq(&self, other: &TxNotification) -> bool
fn eq(&self, other: &TxNotification) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for TxNotification
impl Serialize for TxNotification
impl StructuralPartialEq for TxNotification
Auto Trait Implementations§
impl Freeze for TxNotification
impl RefUnwindSafe for TxNotification
impl Send for TxNotification
impl Sync for TxNotification
impl Unpin for TxNotification
impl UnsafeUnpin for TxNotification
impl UnwindSafe for TxNotification
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