Enum trezor_client::protos::InputScriptType
source · pub enum InputScriptType {
SPENDADDRESS = 0,
SPENDMULTISIG = 1,
EXTERNAL = 2,
SPENDWITNESS = 3,
SPENDP2SHWITNESS = 4,
SPENDTAPROOT = 5,
}
Available on crate feature
bitcoin
only.Variants§
SPENDADDRESS = 0
SPENDMULTISIG = 1
EXTERNAL = 2
SPENDWITNESS = 3
SPENDP2SHWITNESS = 4
SPENDTAPROOT = 5
Trait Implementations§
source§impl Clone for InputScriptType
impl Clone for InputScriptType
source§fn clone(&self) -> InputScriptType
fn clone(&self) -> InputScriptType
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 InputScriptType
impl Debug for InputScriptType
source§impl Default for InputScriptType
impl Default for InputScriptType
source§impl Enum for InputScriptType
impl Enum for InputScriptType
source§fn from_i32(value: i32) -> Option<InputScriptType>
fn from_i32(value: i32) -> Option<InputScriptType>
Try to create an enum from
i32
value.
Return None
if value is unknown.source§fn from_str(str: &str) -> Option<InputScriptType>
fn from_str(str: &str) -> Option<InputScriptType>
Try to create an enum from
&str
value.
Return None
if str is unknown.source§const VALUES: &'static [InputScriptType] = _
const VALUES: &'static [InputScriptType] = _
All enum values for enum type.
source§impl EnumFull for InputScriptType
impl EnumFull for InputScriptType
source§fn enum_descriptor() -> EnumDescriptor
fn enum_descriptor() -> EnumDescriptor
Get enum descriptor by type.
source§fn descriptor(&self) -> EnumValueDescriptor
fn descriptor(&self) -> EnumValueDescriptor
Get enum value descriptor.
source§impl Hash for InputScriptType
impl Hash for InputScriptType
source§impl PartialEq for InputScriptType
impl PartialEq for InputScriptType
source§fn eq(&self, other: &InputScriptType) -> bool
fn eq(&self, other: &InputScriptType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for InputScriptType
impl Eq for InputScriptType
impl StructuralPartialEq for InputScriptType
Auto Trait Implementations§
impl RefUnwindSafe for InputScriptType
impl Send for InputScriptType
impl Sync for InputScriptType
impl Unpin for InputScriptType
impl UnwindSafe for InputScriptType
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