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