pub enum ScriptType {
P2WSH,
P2TR,
}
Expand description
Type of the script to use. Both are supported, but P2WSH may not be supported by all the indexers So P2TR is preferred
Variants§
Trait Implementations§
Source§impl Clone for ScriptType
impl Clone for ScriptType
Source§fn clone(&self) -> ScriptType
fn clone(&self) -> ScriptType
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 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