Struct mutiny_core::nodemanager::TransactionDetails
source · pub struct TransactionDetails {
pub transaction: Option<Transaction>,
pub txid: Txid,
pub received: u64,
pub sent: u64,
pub fee: Option<u64>,
pub confirmation_time: ConfirmationTime,
pub labels: Vec<String>,
}Expand description
A wallet transaction
Fields§
§transaction: Option<Transaction>Optional transaction
txid: TxidTransaction id
received: u64Received value (sats) Sum of owned outputs of this transaction.
sent: u64Sent value (sats) Sum of owned inputs of this transaction.
fee: Option<u64>Fee value in sats if it was available.
confirmation_time: ConfirmationTimeIf the transaction is confirmed, contains height and Unix timestamp of the block containing the
transaction, unconfirmed transaction contains None.
labels: Vec<String>Labels associated with this transaction
Trait Implementations§
source§impl Clone for TransactionDetails
impl Clone for TransactionDetails
source§fn clone(&self) -> TransactionDetails
fn clone(&self) -> TransactionDetails
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 moresource§impl Debug for TransactionDetails
impl Debug for TransactionDetails
source§impl<'de> Deserialize<'de> for TransactionDetails
impl<'de> Deserialize<'de> for TransactionDetails
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 From<TransactionDetails> for TransactionDetails
impl From<TransactionDetails> for TransactionDetails
source§fn from(t: TransactionDetails) -> Self
fn from(t: TransactionDetails) -> Self
Converts to this type from the input type.
source§impl Ord for TransactionDetails
impl Ord for TransactionDetails
source§impl PartialEq<TransactionDetails> for TransactionDetails
impl PartialEq<TransactionDetails> for TransactionDetails
source§fn eq(&self, other: &TransactionDetails) -> bool
fn eq(&self, other: &TransactionDetails) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd<TransactionDetails> for TransactionDetails
impl PartialOrd<TransactionDetails> for TransactionDetails
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moresource§impl Serialize for TransactionDetails
impl Serialize for TransactionDetails
impl Eq for TransactionDetails
impl StructuralEq for TransactionDetails
impl StructuralPartialEq for TransactionDetails
Auto Trait Implementations§
impl RefUnwindSafe for TransactionDetails
impl Send for TransactionDetails
impl Sync for TransactionDetails
impl Unpin for TransactionDetails
impl UnwindSafe for TransactionDetails
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<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.