Struct miniscript::plan::TaprootCanSign
source · pub struct TaprootCanSign {
pub key_spend: bool,
pub script_spend: TaprootAvailableLeaves,
pub sighash_default: bool,
}
Expand description
Signatures which a taproot key can produce
Defaults to key_spend=true
, script_spend=Any
and sighash_default=true
Fields§
§key_spend: bool
Can produce key spend signatures
script_spend: TaprootAvailableLeaves
Can produce script spend signatures
sighash_default: bool
Whether SIGHASH_DEFAULT
will be used to sign
Trait Implementations§
source§impl Clone for TaprootCanSign
impl Clone for TaprootCanSign
source§fn clone(&self) -> TaprootCanSign
fn clone(&self) -> TaprootCanSign
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 TaprootCanSign
impl Debug for TaprootCanSign
source§impl Default for TaprootCanSign
impl Default for TaprootCanSign
source§impl Hash for TaprootCanSign
impl Hash for TaprootCanSign
source§impl Ord for TaprootCanSign
impl Ord for TaprootCanSign
source§fn cmp(&self, other: &TaprootCanSign) -> Ordering
fn cmp(&self, other: &TaprootCanSign) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<TaprootCanSign> for TaprootCanSign
impl PartialEq<TaprootCanSign> for TaprootCanSign
source§fn eq(&self, other: &TaprootCanSign) -> bool
fn eq(&self, other: &TaprootCanSign) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<TaprootCanSign> for TaprootCanSign
impl PartialOrd<TaprootCanSign> for TaprootCanSign
source§fn partial_cmp(&self, other: &TaprootCanSign) -> Option<Ordering>
fn partial_cmp(&self, other: &TaprootCanSign) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for TaprootCanSign
impl StructuralEq for TaprootCanSign
impl StructuralPartialEq for TaprootCanSign
Auto Trait Implementations§
impl RefUnwindSafe for TaprootCanSign
impl Send for TaprootCanSign
impl Sync for TaprootCanSign
impl Unpin for TaprootCanSign
impl UnwindSafe for TaprootCanSign
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