#[repr(i32)]pub enum BtcCoin {
Btc = 0,
Tbtc = 1,
Ltc = 2,
Tltc = 3,
Rbtc = 4,
}
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 PartialOrd for BtcCoin
impl PartialOrd for BtcCoin
impl Copy for BtcCoin
impl Eq for BtcCoin
impl StructuralPartialEq for BtcCoin
Auto Trait Implementations§
impl Freeze for BtcCoin
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