#[repr(u8)]pub enum Descriptor {
Bare = 0,
Pkh = 1,
Sh = 2,
Wpkh = 3,
Wsh = 4,
Tr = 5,
Pk = 6,
}Expand description
Script descriptor
Variants§
Bare = 0
A raw scriptpubkey (including pay-to-pubkey) under Legacy context
Pkh = 1
Pay-to-PubKey-Hash
Sh = 2
Pay-to-ScriptHash(includes nested wsh/wpkh/sorted multi)
Wpkh = 3
Pay-to-Witness-PubKey-Hash
Wsh = 4
Pay-to-Witness-ScriptHash with Segwitv0 context
Tr = 5
Pay-to-Taproot
Pk = 6
Raw public key
Implementations§
Source§impl Descriptor
impl Descriptor
pub fn is_witness(&self) -> bool
Trait Implementations§
Source§impl Clone for Descriptor
impl Clone for Descriptor
Source§fn clone(&self) -> Descriptor
fn clone(&self) -> Descriptor
Returns a duplicate 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 Descriptor
Available on crate feature debug only.
impl Debug for Descriptor
Available on crate feature
debug only.Source§impl Default for Descriptor
impl Default for Descriptor
Source§impl PartialEq for Descriptor
impl PartialEq for Descriptor
Source§impl<'a> TryFrom<&'a str> for Descriptor
impl<'a> TryFrom<&'a str> for Descriptor
impl StructuralPartialEq for Descriptor
Auto Trait Implementations§
impl Freeze for Descriptor
impl RefUnwindSafe for Descriptor
impl Send for Descriptor
impl Sync for Descriptor
impl Unpin for Descriptor
impl UnwindSafe for Descriptor
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