Struct kraapi::api::asset::KAssetPair[][src]

pub struct KAssetPair(pub KAsset, pub KAsset);

Tradeable asset pair

FIXME

Kraken only accepts certain asset pairs as listed from the asset pair endpoint. This data probably should be parsed into a lookup table to ensure only support pairs are accepted. Open a pull request at https://github.com/Fuzzy-Math/KrakenAPI-Rust

Trait Implementations

impl Clone for KAssetPair[src]

impl Copy for KAssetPair[src]

impl Debug for KAssetPair[src]

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

impl Display for KAssetPair[src]

impl Eq for KAssetPair[src]

impl FromStr for KAssetPair[src]

type Err = KrakenErrors<KError>

The associated error which can be returned from parsing.

impl Hash for KAssetPair[src]

impl PartialEq<KAssetPair> for KAssetPair[src]

impl Serialize for KAssetPair[src]

impl TryFrom<&'_ str> for KAssetPair[src]

type Error = KrakenErrors<KError>

The type returned in the event of a conversion error.

impl TryFrom<String> for KAssetPair[src]

type Error = KrakenErrors<KError>

The type returned in the event of a conversion error.

Auto Trait Implementations

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, 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.