Enum bitbox_api::pb::BtcCoin  
source · #[repr(i32)]pub enum BtcCoin {
    Btc = 0,
    Tbtc = 1,
    Ltc = 2,
    Tltc = 3,
}Variants§
Implementations§
source§impl BtcCoin
 
impl BtcCoin
sourcepub fn as_str_name(&self) -> &'static str
 
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
sourcepub fn from_str_name(value: &str) -> Option<Self>
 
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
source§impl Ord for BtcCoin
 
impl Ord for BtcCoin
source§impl PartialEq for BtcCoin
 
impl PartialEq for BtcCoin
source§impl PartialOrd for BtcCoin
 
impl PartialOrd for BtcCoin
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
 
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for 
self and other) and is used by the <=
operator. Read moresource§impl TryFrom<i32> for BtcCoin
 
impl TryFrom<i32> for BtcCoin
§type Error = DecodeError
 
type Error = DecodeError
The type returned in the event of a conversion error.
impl Copy for BtcCoin
impl Eq for BtcCoin
impl StructuralEq for BtcCoin
impl StructuralPartialEq for BtcCoin
Auto Trait Implementations§
impl RefUnwindSafe for BtcCoin
impl Send for BtcCoin
impl Sync for BtcCoin
impl Unpin for BtcCoin
impl UnwindSafe for BtcCoin
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