pub struct PriceValue(pub Decimal);Expand description
An instrument price, encoded as a string on the wire.
Tuple Fields§
§0: DecimalImplementations§
Trait Implementations§
Source§impl Clone for PriceValue
impl Clone for PriceValue
Source§fn clone(&self) -> PriceValue
fn clone(&self) -> PriceValue
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 moreimpl Copy for PriceValue
Source§impl Debug for PriceValue
impl Debug for PriceValue
Source§impl Default for PriceValue
impl Default for PriceValue
Source§fn default() -> PriceValue
fn default() -> PriceValue
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PriceValue
impl<'de> Deserialize<'de> for PriceValue
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for PriceValue
impl Display for PriceValue
impl Eq for PriceValue
Source§impl From<Decimal> for PriceValue
impl From<Decimal> for PriceValue
Source§impl From<PriceValue> for Decimal
impl From<PriceValue> for Decimal
Source§fn from(value: PriceValue) -> Self
fn from(value: PriceValue) -> Self
Converts to this type from the input type.
Source§impl From<i32> for PriceValue
impl From<i32> for PriceValue
Source§impl From<i64> for PriceValue
impl From<i64> for PriceValue
Source§impl From<u32> for PriceValue
impl From<u32> for PriceValue
Source§impl FromStr for PriceValue
impl FromStr for PriceValue
Source§impl Hash for PriceValue
impl Hash for PriceValue
Source§impl Ord for PriceValue
impl Ord for PriceValue
Source§fn cmp(&self, other: &PriceValue) -> Ordering
fn cmp(&self, other: &PriceValue) -> Ordering
1.21.0 (const: unstable) · 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 PartialEq for PriceValue
impl PartialEq for PriceValue
Source§impl PartialOrd for PriceValue
impl PartialOrd for PriceValue
Source§impl Serialize for PriceValue
impl Serialize for PriceValue
impl StructuralPartialEq for PriceValue
Auto Trait Implementations§
impl Freeze for PriceValue
impl RefUnwindSafe for PriceValue
impl Send for PriceValue
impl Sync for PriceValue
impl Unpin for PriceValue
impl UnsafeUnpin for PriceValue
impl UnwindSafe for PriceValue
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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.