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