Struct rgb_lib::wallet::Transaction
source · pub struct Transaction {
pub transaction_type: TransactionType,
pub txid: String,
pub received: u64,
pub sent: u64,
pub fee: Option<u64>,
pub confirmation_time: Option<BlockTime>,
}
Expand description
A Bitcoin transaction.
Fields§
§transaction_type: TransactionType
Type of transaction
txid: String
Transaction ID
received: u64
Received value (in sats), computed as the sum of owned output amounts included in this transaction
sent: u64
Sent value (in sats), computed as the sum of owned input amounts included in this transaction
fee: Option<u64>
Fee value (in sats) if transaction is confirmed
confirmation_time: Option<BlockTime>
Height and Unix timestamp of the block containing the transaction if confirmed, None
if
unconfirmed
Trait Implementations§
source§impl Clone for Transaction
impl Clone for Transaction
source§fn clone(&self) -> Transaction
fn clone(&self) -> Transaction
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 Transaction
impl Debug for Transaction
source§impl<'de> Deserialize<'de> for Transaction
impl<'de> Deserialize<'de> for Transaction
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
Auto Trait Implementations§
impl RefUnwindSafe for Transaction
impl Send for Transaction
impl Sync for Transaction
impl Unpin for Transaction
impl UnwindSafe for Transaction
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