pub enum ScriptType {
P2pk,
P2pkh,
P2sh,
P2wpkh,
P2wsh,
P2tr,
}Expand description
Type of script
Variants§
P2pk
P2PK - Pay to pubkey
P2pkh
P2PKH - Pay to pubkey hash
P2sh
P2SH - Pay to script hash
P2wpkh
P2WPKH - Pay to witness pubkey hash
P2wsh
P2WSH - Pay to witness script hash
P2tr
P2TR - Pay to Taproot
Trait Implementations§
Source§impl Clone for ScriptType
impl Clone for ScriptType
Source§fn clone(&self) -> ScriptType
fn clone(&self) -> ScriptType
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 ScriptType
impl Debug for ScriptType
Source§impl PartialEq for ScriptType
impl PartialEq for ScriptType
impl Copy for ScriptType
impl Eq for ScriptType
impl StructuralPartialEq for ScriptType
Auto Trait Implementations§
impl Freeze for ScriptType
impl RefUnwindSafe for ScriptType
impl Send for ScriptType
impl Sync for ScriptType
impl Unpin for ScriptType
impl UnwindSafe for ScriptType
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