Enum trezor_client::protos::OutputScriptType
source · pub enum OutputScriptType {
PAYTOADDRESS = 0,
PAYTOSCRIPTHASH = 1,
PAYTOMULTISIG = 2,
PAYTOOPRETURN = 3,
PAYTOWITNESS = 4,
PAYTOP2SHWITNESS = 5,
PAYTOTAPROOT = 6,
}
Available on crate feature
bitcoin
only.Variants§
PAYTOADDRESS = 0
PAYTOSCRIPTHASH = 1
PAYTOMULTISIG = 2
PAYTOOPRETURN = 3
PAYTOWITNESS = 4
PAYTOP2SHWITNESS = 5
PAYTOTAPROOT = 6
Trait Implementations§
source§impl Clone for OutputScriptType
impl Clone for OutputScriptType
source§fn clone(&self) -> OutputScriptType
fn clone(&self) -> OutputScriptType
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 OutputScriptType
impl Debug for OutputScriptType
source§impl Default for OutputScriptType
impl Default for OutputScriptType
source§impl Enum for OutputScriptType
impl Enum for OutputScriptType
source§const NAME: &'static str = "OutputScriptType"
const NAME: &'static str = "OutputScriptType"
Enum name as specified in
.proto
file. Read moresource§fn from_i32(value: i32) -> Option<OutputScriptType>
fn from_i32(value: i32) -> Option<OutputScriptType>
Try to create an enum from
i32
value.
Return None
if value is unknown.source§fn from_str(str: &str) -> Option<OutputScriptType>
fn from_str(str: &str) -> Option<OutputScriptType>
Try to create an enum from
&str
value.
Return None
if str is unknown.source§const VALUES: &'static [OutputScriptType] = _
const VALUES: &'static [OutputScriptType] = _
All enum values for enum type.
source§impl EnumFull for OutputScriptType
impl EnumFull for OutputScriptType
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 OutputScriptType
impl Hash for OutputScriptType
source§impl PartialEq for OutputScriptType
impl PartialEq for OutputScriptType
source§fn eq(&self, other: &OutputScriptType) -> bool
fn eq(&self, other: &OutputScriptType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for OutputScriptType
impl Eq for OutputScriptType
impl StructuralPartialEq for OutputScriptType
Auto Trait Implementations§
impl Freeze for OutputScriptType
impl RefUnwindSafe for OutputScriptType
impl Send for OutputScriptType
impl Sync for OutputScriptType
impl Unpin for OutputScriptType
impl UnwindSafe for OutputScriptType
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
source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)