pub struct TxOut { /* private fields */ }Expand description
A single transaction output.
It can be initialized with a script pubkey and amount, and the user may retrieve a copy of a script pubkey and its amount.
Implementations§
Source§impl TxOut
impl TxOut
pub fn new(script_pubkey: &ScriptPubkey, amount: i64) -> TxOut
Sourcepub fn get_script_pubkey(&self) -> ScriptPubkey
pub fn get_script_pubkey(&self) -> ScriptPubkey
Get the script pubkey of this output
Trait Implementations§
impl Send for TxOut
impl Sync for TxOut
Auto Trait Implementations§
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