pub struct CurrencyPair {
pub base: String,
pub quote: String,
}Expand description
Currency pair (e.g., “EURUSD”, “GBPUSD”)
Fields§
§base: String§quote: StringImplementations§
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 (const: unstable) · 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<'de> Deserialize<'de> for CurrencyPair
impl<'de> Deserialize<'de> for CurrencyPair
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for CurrencyPair
Source§impl Hash for CurrencyPair
impl Hash for CurrencyPair
Source§impl PartialEq for CurrencyPair
impl PartialEq for CurrencyPair
Source§impl Serialize for CurrencyPair
impl Serialize 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 UnsafeUnpin 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