[][src]Enum akkorokamui::Asset

pub enum Asset {
    ADA,
    ALGO,
    ATOM,
    BAL,
    BAT,
    BCH,
    COMP,
    CRV,
    DAI,
    DASH,
    DOT,
    EOS,
    ETC,
    ETH,
    FIL,
    GNO,
    ICX,
    KAVA,
    KNC,
    KSM,
    LINK,
    LSK,
    LTC,
    MLN,
    NANO,
    OMG,
    OXT,
    PAXG,
    QTUM,
    REP,
    REPV2,
    SC,
    SNX,
    STORJ,
    TRX,
    UNI,
    USDC,
    USDT,
    WAVES,
    XBT,
    XDG,
    XLM,
    XMR,
    XRP,
    XTZ,
    YFI,
    ZEC,
    AUD,
    EUR,
    GBP,
    USD,
}

List of crypto and fiat currencies.

Variants

ADA
ALGO
ATOM
BAL
BAT
BCH
COMP
CRV
DAI
DASH
DOT
EOS
ETC
ETH
FIL
GNO
ICX
KAVA
KNC
KSM
LSK
LTC
MLN
NANO
OMG
OXT
PAXG
QTUM
REP
REPV2
SC
SNX
STORJ
TRX
UNI
USDC
USDT
WAVES
XBT
XDG
XLM
XMR
XRP
XTZ
YFI
ZEC
AUD
EUR
GBP
USD

Implementations

impl Asset[src]

pub fn pair(self, other: Self) -> String[src]

Gets the alternate pair name.

NOTE

Sometimes, the asset pair name may need to use the X and Z prefix depending on the Kraken classification system, where X stands for cryptocurrency based assets while Z is for fiat based assets. You can build a map of pair alternative names to asset pair effective names by querying all the AssetPairs from the homonymous API.

pub fn with_prefix(self) -> String[src]

Gets a new string representing the asset with the crypto/fiat prefix.

pub fn is_crypto(self) -> bool[src]

Returns true only if this asset is a crypto currency.

pub fn is_fiat(self) -> bool[src]

Returns true only if this asset is a fiat currency.

Trait Implementations

impl Clone for Asset[src]

impl Copy for Asset[src]

impl Debug for Asset[src]

impl<'de> Deserialize<'de> for Asset[src]

impl Display for Asset[src]

impl Eq for Asset[src]

impl FromStr for Asset[src]

type Err = Error

The associated error which can be returned from parsing.

impl Ord for Asset[src]

impl PartialEq<Asset> for Asset[src]

impl PartialOrd<Asset> for Asset[src]

impl Serialize for Asset[src]

impl StructuralEq for Asset[src]

impl StructuralPartialEq for Asset[src]

Auto Trait Implementations

impl RefUnwindSafe for Asset

impl Send for Asset

impl Sync for Asset

impl Unpin for Asset

impl UnwindSafe for Asset

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.