pub struct TxOut {
pub value: u64,
pub n: u32,
pub script_pub_key: ScriptPubKey,
}Expand description
A transaction output returned by some RPCs like gettransaction and getblock
Fields§
§value: u64The amount in sats locked in this UTXO
n: u32This utxo’s index inside the transaction
script_pub_key: ScriptPubKeyThe locking script of this utxo
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TxOut
impl<'de> Deserialize<'de> for TxOut
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 Freeze for TxOut
impl RefUnwindSafe for TxOut
impl Send for TxOut
impl Sync for TxOut
impl Unpin for TxOut
impl UnwindSafe for TxOut
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