Struct crypto_currency::Pair [] [src]

pub struct Pair {
    pub quote: Symbol,
    pub base: Symbol,
}

Currency pair.

Fields

Trait Implementations

impl PartialEq for Pair
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Clone for Pair
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PairExt for Pair
[src]

Pair extension implementatino for Pair.

[src]

Joins pair with given separator.

[src]

Joins reversed pair with given separator.

[src]

Parses a currency pair with _ separator and reversed. Note: Quote and base are reversed in Poloniex APIs

impl Debug for Pair
[src]

Formats currency pair for display.

[src]

Formats the value using the given formatter.

impl<'a> TryFrom<&'a str> for Pair
[src]

Tries to convert currency pair from string.

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

[src]

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.