pub struct Quantized {
pub value: Decimal,
pub input: f64,
pub granularity: Granularity,
}Expand description
A market quantity together with the rule that produced it.
Fields§
§value: DecimalThe exact market quantity.
input: f64The planner value it came from.
granularity: GranularityThe rule applied.
Trait Implementations§
impl Copy for Quantized
Source§impl<'de> Deserialize<'de> for Quantized
impl<'de> Deserialize<'de> for Quantized
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 StructuralPartialEq for Quantized
Auto Trait Implementations§
impl Forget for Quantized
impl Freeze for Quantized
impl Move for Quantized
impl RefUnwindSafe for Quantized
impl Send for Quantized
impl Sync for Quantized
impl Unpin for Quantized
impl UnsafeUnpin for Quantized
impl UnwindSafe for Quantized
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