pub struct CurrencyPair {
pub from_currency: String,
pub to_currency: String,
}Expand description
Currency pair representing source and target currencies.
Fields§
§from_currency: StringSource (from) currency code (ISO 4217).
to_currency: StringTarget (to) currency code (ISO 4217).
Implementations§
Source§impl CurrencyPair
impl CurrencyPair
Sourcepub fn is_same_currency(&self) -> bool
pub fn is_same_currency(&self) -> bool
Returns true if this is a same-currency pair.
Trait Implementations§
Source§impl Clone for CurrencyPair
impl Clone for CurrencyPair
Source§fn clone(&self) -> CurrencyPair
fn clone(&self) -> CurrencyPair
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 CurrencyPair
impl Debug for CurrencyPair
Source§impl Display for CurrencyPair
impl Display for CurrencyPair
Source§impl Hash for CurrencyPair
impl Hash for CurrencyPair
Source§impl PartialEq for CurrencyPair
impl PartialEq for CurrencyPair
impl Eq for CurrencyPair
impl StructuralPartialEq for CurrencyPair
Auto Trait Implementations§
impl Freeze for CurrencyPair
impl RefUnwindSafe for CurrencyPair
impl Send for CurrencyPair
impl Sync for CurrencyPair
impl Unpin for CurrencyPair
impl UnwindSafe for CurrencyPair
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.