pub struct Underlying { /* private fields */ }Expand description
The real-world asset being traded.
Backed by Arc<str> for O(1) clone in hot loops.
Implementations§
Source§impl Underlying
impl Underlying
pub fn new(canonical: impl Into<String>, asset_class: AssetClass) -> Self
pub fn canonical(&self) -> &str
pub fn asset_class(&self) -> AssetClass
Trait Implementations§
Source§impl Clone for Underlying
impl Clone for Underlying
Source§fn clone(&self) -> Underlying
fn clone(&self) -> Underlying
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 Underlying
impl Debug for Underlying
Source§impl<'de> Deserialize<'de> for Underlying
impl<'de> Deserialize<'de> for Underlying
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 Hash for Underlying
impl Hash for Underlying
Source§impl PartialEq for Underlying
impl PartialEq for Underlying
Source§impl Serialize for Underlying
impl Serialize for Underlying
impl Eq for Underlying
impl StructuralPartialEq for Underlying
Auto Trait Implementations§
impl Freeze for Underlying
impl RefUnwindSafe for Underlying
impl Send for Underlying
impl Sync for Underlying
impl Unpin for Underlying
impl UnsafeUnpin for Underlying
impl UnwindSafe for Underlying
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