Struct crypto_currency::Pair
[−]
[src]
pub struct Pair { pub quote: Symbol, pub base: Symbol, }
Currency pair.
Fields
quote: Symbol
base: Symbol
Trait Implementations
impl PartialEq for Pair
[src]
fn eq(&self, __arg_0: &Pair) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Pair) -> bool
[src]
This method tests for !=
.
impl Clone for Pair
[src]
fn clone(&self) -> Pair
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PairExt for Pair
[src]
Pair extension implementatino for Pair.
fn join<S: Display>(&self, sep: S) -> String
[src]
Joins pair with given separator.
fn join_reversed<S: Display>(&self, sep: S) -> String
[src]
Joins reversed pair with given separator.
fn parse_reversed(s: &str) -> Result<Pair>
[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.
impl<'a> TryFrom<&'a str> for Pair
[src]
Tries to convert currency pair from string.