Struct bdk::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: Option<BlockTime>,
}
Expand description
A wallet transaction
Fields
transaction: Option<Transaction>
Optional transaction
txid: Txid
Transaction id
received: u64
Received value (sats)
sent: u64
Sent value (sats)
fee: Option<u64>
Fee value (sats) if available.
The availability of the fee depends on the backend. It’s never None
with an Electrum
Server backend, but it could be None
with a Bitcoin RPC node without txindex that receive
funds while offline.
confirmation_time: Option<BlockTime>
If the transaction is confirmed, contains height and timestamp of the block containing the
transaction, unconfirmed transaction contains None
.
Trait Implementations
sourceimpl Clone for TransactionDetails
impl Clone for TransactionDetails
sourcefn clone(&self) -> TransactionDetails
fn clone(&self) -> TransactionDetails
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for TransactionDetails
impl Debug for TransactionDetails
sourceimpl Default for TransactionDetails
impl Default for TransactionDetails
sourcefn default() -> TransactionDetails
fn default() -> TransactionDetails
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for TransactionDetails
impl<'de> Deserialize<'de> for TransactionDetails
sourcefn 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
sourceimpl PartialEq<TransactionDetails> for TransactionDetails
impl PartialEq<TransactionDetails> for TransactionDetails
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &TransactionDetails) -> bool
fn ne(&self, other: &TransactionDetails) -> bool
This method tests for !=
.
sourceimpl 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more