pub struct WalletTx {
pub txid: Txid,
pub status: TxStatus,
pub inputs: Vec<TxCredit>,
pub outputs: Vec<TxDebit>,
pub fee: Sats,
pub size: u32,
pub weight: u32,
pub version: TxVer,
pub locktime: LockTime,
}
Fields§
§txid: Txid
§status: TxStatus
§inputs: Vec<TxCredit>
§outputs: Vec<TxDebit>
§fee: Sats
§size: u32
§weight: u32
§version: TxVer
§locktime: LockTime
Implementations§
Source§impl WalletTx
impl WalletTx
pub fn credits(&self) -> impl Iterator<Item = &TxCredit>
pub fn debits(&self) -> impl Iterator<Item = &TxDebit>
pub fn total_moved(&self) -> Sats
pub fn credit_sum(&self) -> Sats
pub fn debit_sum(&self) -> Sats
pub fn credited_debited(&self) -> (Sats, Sats)
pub fn balance_change(&self) -> i64
Trait Implementations§
impl Eq for WalletTx
impl StructuralPartialEq for WalletTx
Auto Trait Implementations§
impl Freeze for WalletTx
impl RefUnwindSafe for WalletTx
impl Send for WalletTx
impl Sync for WalletTx
impl Unpin for WalletTx
impl UnwindSafe for WalletTx
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.