Enum trezor_client::protos::CardanoAddressType
source · pub enum CardanoAddressType {
BASE = 0,
BASE_SCRIPT_KEY = 1,
BASE_KEY_SCRIPT = 2,
BASE_SCRIPT_SCRIPT = 3,
POINTER = 4,
POINTER_SCRIPT = 5,
ENTERPRISE = 6,
ENTERPRISE_SCRIPT = 7,
BYRON = 8,
REWARD = 14,
REWARD_SCRIPT = 15,
}
Available on crate feature
cardano
only.Variants§
BASE = 0
BASE_SCRIPT_KEY = 1
BASE_KEY_SCRIPT = 2
BASE_SCRIPT_SCRIPT = 3
POINTER = 4
POINTER_SCRIPT = 5
ENTERPRISE = 6
ENTERPRISE_SCRIPT = 7
BYRON = 8
REWARD = 14
REWARD_SCRIPT = 15
Trait Implementations§
source§impl Clone for CardanoAddressType
impl Clone for CardanoAddressType
source§fn clone(&self) -> CardanoAddressType
fn clone(&self) -> CardanoAddressType
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 CardanoAddressType
impl Debug for CardanoAddressType
source§impl Default for CardanoAddressType
impl Default for CardanoAddressType
source§impl Enum for CardanoAddressType
impl Enum for CardanoAddressType
source§const NAME: &'static str = "CardanoAddressType"
const NAME: &'static str = "CardanoAddressType"
Enum name as specified in
.proto
file. Read moresource§fn from_i32(value: i32) -> Option<CardanoAddressType>
fn from_i32(value: i32) -> Option<CardanoAddressType>
Try to create an enum from
i32
value.
Return None
if value is unknown.source§fn from_str(str: &str) -> Option<CardanoAddressType>
fn from_str(str: &str) -> Option<CardanoAddressType>
Try to create an enum from
&str
value.
Return None
if str is unknown.source§const VALUES: &'static [CardanoAddressType] = _
const VALUES: &'static [CardanoAddressType] = _
All enum values for enum type.
source§impl EnumFull for CardanoAddressType
impl EnumFull for CardanoAddressType
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 CardanoAddressType
impl Hash for CardanoAddressType
source§impl PartialEq for CardanoAddressType
impl PartialEq for CardanoAddressType
source§fn eq(&self, other: &CardanoAddressType) -> bool
fn eq(&self, other: &CardanoAddressType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for CardanoAddressType
impl Eq for CardanoAddressType
impl StructuralPartialEq for CardanoAddressType
Auto Trait Implementations§
impl RefUnwindSafe for CardanoAddressType
impl Send for CardanoAddressType
impl Sync for CardanoAddressType
impl Unpin for CardanoAddressType
impl UnwindSafe for CardanoAddressType
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