pub struct StaticPaymentOutputDescriptor {
pub outpoint: OutPoint,
pub output: TxOut,
pub channel_keys_id: [u8; 32],
pub channel_value_satoshis: u64,
}
Expand description
Information about a spendable output to our “payment key”. See SpendableOutputDescriptor::StaticPaymentOutput for more details on how to spend this.
Fields
outpoint: OutPoint
The outpoint which is spendable
output: TxOut
The output which is referenced by the given outpoint
channel_keys_id: [u8; 32]
Arbitrary identification information returned by a call to
Sign::channel_keys_id()
. This may be useful in re-deriving keys used in
the channel to spend the output.
channel_value_satoshis: u64
The value of the channel which this transactions spends.
Implementations
sourceimpl StaticPaymentOutputDescriptor
impl StaticPaymentOutputDescriptor
sourcepub const MAX_WITNESS_LENGTH: usize
pub const MAX_WITNESS_LENGTH: usize
The maximum length a well-formed witness spending one of these should have.
Trait Implementations
sourceimpl Clone for StaticPaymentOutputDescriptor
impl Clone for StaticPaymentOutputDescriptor
sourcefn clone(&self) -> StaticPaymentOutputDescriptor
fn clone(&self) -> StaticPaymentOutputDescriptor
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 StaticPaymentOutputDescriptor
impl Debug for StaticPaymentOutputDescriptor
sourceimpl PartialEq<StaticPaymentOutputDescriptor> for StaticPaymentOutputDescriptor
impl PartialEq<StaticPaymentOutputDescriptor> for StaticPaymentOutputDescriptor
sourcefn eq(&self, other: &StaticPaymentOutputDescriptor) -> bool
fn eq(&self, other: &StaticPaymentOutputDescriptor) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &StaticPaymentOutputDescriptor) -> bool
fn ne(&self, other: &StaticPaymentOutputDescriptor) -> bool
This method tests for !=
.
sourceimpl Writeable for StaticPaymentOutputDescriptor
impl Writeable for StaticPaymentOutputDescriptor
sourcefn write<W: Writer>(&self, writer: &mut W) -> Result<(), Error>
fn write<W: Writer>(&self, writer: &mut W) -> Result<(), Error>
Writes self out to the given Writer
sourcefn serialized_length(&self) -> usize
fn serialized_length(&self) -> usize
Gets the length of this object after it has been serialized. This can be overridden to optimize cases where we prepend an object with its length. Read more
impl StructuralPartialEq for StaticPaymentOutputDescriptor
Auto Trait Implementations
impl RefUnwindSafe for StaticPaymentOutputDescriptor
impl Send for StaticPaymentOutputDescriptor
impl Sync for StaticPaymentOutputDescriptor
impl Unpin for StaticPaymentOutputDescriptor
impl UnwindSafe for StaticPaymentOutputDescriptor
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> MaybeReadable for T where
T: Readable,
impl<T> MaybeReadable for T where
T: Readable,
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.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more