#[non_exhaustive]pub enum CryptoAsset {
Btc,
Eth,
Sol,
Usdc,
Usdt,
Usdp,
Usdg,
Other(String),
}Expand description
Crypto asset.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Btc
Bitcoin.
Eth
Ether.
Sol
Solana.
Usdc
USDC.
Usdt
USDT.
Usdp
USDP.
Usdg
USDG.
Other(String)
Other crypto asset.
Trait Implementations§
Source§impl Clone for CryptoAsset
impl Clone for CryptoAsset
Source§fn clone(&self) -> CryptoAsset
fn clone(&self) -> CryptoAsset
Returns a duplicate 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 CryptoAsset
impl Debug for CryptoAsset
Source§impl From<&StablecoinAsset> for CryptoAsset
impl From<&StablecoinAsset> for CryptoAsset
Source§fn from(asset: &StablecoinAsset) -> Self
fn from(asset: &StablecoinAsset) -> Self
Converts to this type from the input type.
Source§impl Hash for CryptoAsset
impl Hash for CryptoAsset
Source§impl PartialEq for CryptoAsset
impl PartialEq for CryptoAsset
impl Eq for CryptoAsset
impl StructuralPartialEq for CryptoAsset
Auto Trait Implementations§
impl Freeze for CryptoAsset
impl RefUnwindSafe for CryptoAsset
impl Send for CryptoAsset
impl Sync for CryptoAsset
impl Unpin for CryptoAsset
impl UnsafeUnpin for CryptoAsset
impl UnwindSafe for CryptoAsset
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