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