#[non_exhaustive]pub enum StablecoinAsset {
Usdc,
Usdt,
Usdp,
Usdg,
Other(String),
}Expand description
Stablecoin 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.
Trait Implementations§
Source§impl Clone for StablecoinAsset
impl Clone for StablecoinAsset
Source§fn clone(&self) -> StablecoinAsset
fn clone(&self) -> StablecoinAsset
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 StablecoinAsset
impl Debug for StablecoinAsset
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 StablecoinAsset
impl Hash for StablecoinAsset
Source§impl PartialEq for StablecoinAsset
impl PartialEq for StablecoinAsset
impl Eq for StablecoinAsset
impl StructuralPartialEq for StablecoinAsset
Auto Trait Implementations§
impl Freeze for StablecoinAsset
impl RefUnwindSafe for StablecoinAsset
impl Send for StablecoinAsset
impl Sync for StablecoinAsset
impl Unpin for StablecoinAsset
impl UnsafeUnpin for StablecoinAsset
impl UnwindSafe for StablecoinAsset
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