Enum trezor_client::protos::SafetyCheckLevel
source · pub enum SafetyCheckLevel {
Strict = 0,
PromptAlways = 1,
PromptTemporarily = 2,
}
Variants§
Trait Implementations§
source§impl Clone for SafetyCheckLevel
impl Clone for SafetyCheckLevel
source§fn clone(&self) -> SafetyCheckLevel
fn clone(&self) -> SafetyCheckLevel
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 SafetyCheckLevel
impl Debug for SafetyCheckLevel
source§impl Default for SafetyCheckLevel
impl Default for SafetyCheckLevel
source§impl Enum for SafetyCheckLevel
impl Enum for SafetyCheckLevel
source§const NAME: &'static str = "SafetyCheckLevel"
const NAME: &'static str = "SafetyCheckLevel"
Enum name as specified in
.proto
file. Read moresource§fn from_i32(value: i32) -> Option<SafetyCheckLevel>
fn from_i32(value: i32) -> Option<SafetyCheckLevel>
Try to create an enum from
i32
value.
Return None
if value is unknown.source§fn from_str(str: &str) -> Option<SafetyCheckLevel>
fn from_str(str: &str) -> Option<SafetyCheckLevel>
Try to create an enum from
&str
value.
Return None
if str is unknown.source§const VALUES: &'static [SafetyCheckLevel] = _
const VALUES: &'static [SafetyCheckLevel] = _
All enum values for enum type.
source§impl EnumFull for SafetyCheckLevel
impl EnumFull for SafetyCheckLevel
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 SafetyCheckLevel
impl Hash for SafetyCheckLevel
source§impl PartialEq for SafetyCheckLevel
impl PartialEq for SafetyCheckLevel
source§fn eq(&self, other: &SafetyCheckLevel) -> bool
fn eq(&self, other: &SafetyCheckLevel) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for SafetyCheckLevel
impl Eq for SafetyCheckLevel
impl StructuralPartialEq for SafetyCheckLevel
Auto Trait Implementations§
impl RefUnwindSafe for SafetyCheckLevel
impl Send for SafetyCheckLevel
impl Sync for SafetyCheckLevel
impl Unpin for SafetyCheckLevel
impl UnwindSafe for SafetyCheckLevel
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