pub struct DecimalPrecision {
pub price_precision: u8,
pub quantity_precision: u8,
pub min_quantity: Decimal,
pub min_notional: Decimal,
}Expand description
Precision requirements for decimal values
Fields§
§price_precision: u8Price precision (decimal places)
quantity_precision: u8Quantity precision (decimal places)
min_quantity: DecimalMinimum order quantity
min_notional: DecimalMinimum order value (price * quantity)
Trait Implementations§
Source§impl Clone for DecimalPrecision
impl Clone for DecimalPrecision
Source§fn clone(&self) -> DecimalPrecision
fn clone(&self) -> DecimalPrecision
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DecimalPrecision
impl Debug for DecimalPrecision
Source§impl<'de> Deserialize<'de> for DecimalPrecision
impl<'de> Deserialize<'de> for DecimalPrecision
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
Auto Trait Implementations§
impl Freeze for DecimalPrecision
impl RefUnwindSafe for DecimalPrecision
impl Send for DecimalPrecision
impl Sync for DecimalPrecision
impl Unpin for DecimalPrecision
impl UnwindSafe for DecimalPrecision
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