pub struct SpendSelection {
pub path: SpendPath,
pub sequence: Option<Sequence>,
pub locktime: Option<LockTime>,
pub extra_witness: Vec<Vec<u8>>,
}Fields§
§path: SpendPath§sequence: Option<Sequence>§locktime: Option<LockTime>§extra_witness: Vec<Vec<u8>>Implementations§
Source§impl SpendSelection
impl SpendSelection
pub fn new(path: SpendPath) -> Self
pub fn with_sequence(self, sequence: Sequence) -> Self
pub fn with_locktime(self, locktime: LockTime) -> Self
pub fn with_extra_witness(self, extra_witness: Vec<Vec<u8>>) -> Self
pub fn resolved_sequence(&self, default_sequence: Sequence) -> Sequence
pub fn resolved_spend_info( &self, default_sequence: Sequence, ) -> (Sequence, (ScriptBuf, ControlBlock))
pub fn spend_info(&self) -> (ScriptBuf, ControlBlock)
Trait Implementations§
Source§impl Clone for SpendSelection
impl Clone for SpendSelection
Source§fn clone(&self) -> SpendSelection
fn clone(&self) -> SpendSelection
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SpendSelection
impl Debug for SpendSelection
impl Eq for SpendSelection
Source§impl PartialEq for SpendSelection
impl PartialEq for SpendSelection
Source§fn eq(&self, other: &SpendSelection) -> bool
fn eq(&self, other: &SpendSelection) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SpendSelection
Auto Trait Implementations§
impl Freeze for SpendSelection
impl RefUnwindSafe for SpendSelection
impl Send for SpendSelection
impl Sync for SpendSelection
impl Unpin for SpendSelection
impl UnsafeUnpin for SpendSelection
impl UnwindSafe for SpendSelection
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