Struct lightning::ln::msgs::TxAddOutput
source · pub struct TxAddOutput {
pub channel_id: ChannelId,
pub serial_id: SerialId,
pub sats: u64,
pub script: ScriptBuf,
}
Expand description
A tx_add_output message for adding an output during interactive transaction construction.
Fields§
§channel_id: ChannelId
The channel ID
serial_id: SerialId
A randomly chosen unique identifier for this output, which is even for initiators and odd for non-initiators.
sats: u64
The satoshi value of the output
script: ScriptBuf
The scriptPubKey for the output
Trait Implementations§
source§impl Clone for TxAddOutput
impl Clone for TxAddOutput
source§fn clone(&self) -> TxAddOutput
fn clone(&self) -> TxAddOutput
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 TxAddOutput
impl Debug for TxAddOutput
source§impl Hash for TxAddOutput
impl Hash for TxAddOutput
source§impl PartialEq for TxAddOutput
impl PartialEq for TxAddOutput
source§fn eq(&self, other: &TxAddOutput) -> bool
fn eq(&self, other: &TxAddOutput) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Readable for TxAddOutput
impl Readable for TxAddOutput
source§impl Writeable for TxAddOutput
impl Writeable for TxAddOutput
impl Eq for TxAddOutput
impl StructuralPartialEq for TxAddOutput
Auto Trait Implementations§
impl Freeze for TxAddOutput
impl RefUnwindSafe for TxAddOutput
impl Send for TxAddOutput
impl Sync for TxAddOutput
impl Unpin for TxAddOutput
impl UnwindSafe for TxAddOutput
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