pub struct Underlying<AssetKey> {
pub base: AssetKey,
pub quote: AssetKey,
}Expand description
Instrument Underlying containing a base and quote asset.
eg/ Underlying { base: “btc”, quote: “usdt” }
Fields§
§base: AssetKey§quote: AssetKeyImplementations§
Trait Implementations§
Source§impl<AssetKey: Clone> Clone for Underlying<AssetKey>
impl<AssetKey: Clone> Clone for Underlying<AssetKey>
Source§fn clone(&self) -> Underlying<AssetKey>
fn clone(&self) -> Underlying<AssetKey>
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<AssetKey: Debug> Debug for Underlying<AssetKey>
impl<AssetKey: Debug> Debug for Underlying<AssetKey>
Source§impl<'de, AssetKey> Deserialize<'de> for Underlying<AssetKey>where
AssetKey: Deserialize<'de>,
impl<'de, AssetKey> Deserialize<'de> for Underlying<AssetKey>where
AssetKey: Deserialize<'de>,
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
Source§impl<AssetKey: Hash> Hash for Underlying<AssetKey>
impl<AssetKey: Hash> Hash for Underlying<AssetKey>
Source§impl<AssetKey: Ord> Ord for Underlying<AssetKey>
impl<AssetKey: Ord> Ord for Underlying<AssetKey>
Source§fn cmp(&self, other: &Underlying<AssetKey>) -> Ordering
fn cmp(&self, other: &Underlying<AssetKey>) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<AssetKey: PartialEq> PartialEq for Underlying<AssetKey>
impl<AssetKey: PartialEq> PartialEq for Underlying<AssetKey>
Source§impl<AssetKey: PartialOrd> PartialOrd for Underlying<AssetKey>
impl<AssetKey: PartialOrd> PartialOrd for Underlying<AssetKey>
Source§impl<AssetKey> Serialize for Underlying<AssetKey>where
AssetKey: Serialize,
impl<AssetKey> Serialize for Underlying<AssetKey>where
AssetKey: Serialize,
impl<AssetKey: Copy> Copy for Underlying<AssetKey>
impl<AssetKey: Eq> Eq for Underlying<AssetKey>
impl<AssetKey> StructuralPartialEq for Underlying<AssetKey>
Auto Trait Implementations§
impl<AssetKey> Freeze for Underlying<AssetKey>where
AssetKey: Freeze,
impl<AssetKey> RefUnwindSafe for Underlying<AssetKey>where
AssetKey: RefUnwindSafe,
impl<AssetKey> Send for Underlying<AssetKey>where
AssetKey: Send,
impl<AssetKey> Sync for Underlying<AssetKey>where
AssetKey: Sync,
impl<AssetKey> Unpin for Underlying<AssetKey>where
AssetKey: Unpin,
impl<AssetKey> UnwindSafe for Underlying<AssetKey>where
AssetKey: UnwindSafe,
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