pub enum TapLeavesOptions {
All,
Include(Vec<TapLeafHash>),
Exclude(Vec<TapLeafHash>),
None,
}
Expand description
Customize which taproot script-path leaves the signer should sign.
Variants
All
The signer will sign all the leaves it has a key for.
Include(Vec<TapLeafHash>)
The signer won’t sign leaves other than the ones specified. Note that it could still ignore some of the specified leaves, if it doesn’t have the right key to sign them.
Exclude(Vec<TapLeafHash>)
The signer won’t sign the specified leaves.
None
The signer won’t sign any leaf.
Trait Implementations
sourceimpl Clone for TapLeavesOptions
impl Clone for TapLeavesOptions
sourcefn clone(&self) -> TapLeavesOptions
fn clone(&self) -> TapLeavesOptions
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 TapLeavesOptions
impl Debug for TapLeavesOptions
sourceimpl Default for TapLeavesOptions
impl Default for TapLeavesOptions
sourceimpl PartialEq<TapLeavesOptions> for TapLeavesOptions
impl PartialEq<TapLeavesOptions> for TapLeavesOptions
sourcefn eq(&self, other: &TapLeavesOptions) -> bool
fn eq(&self, other: &TapLeavesOptions) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
impl StructuralPartialEq for TapLeavesOptions
Auto Trait Implementations
impl RefUnwindSafe for TapLeavesOptions
impl Send for TapLeavesOptions
impl Sync for TapLeavesOptions
impl Unpin for TapLeavesOptions
impl UnwindSafe for TapLeavesOptions
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more