Enum lfest::prelude::FilledQuantity
source · pub enum FilledQuantity<Q> {
Unfilled,
Filled {
cumulative_qty: Q,
avg_price: QuoteCurrency,
},
}
Expand description
Contains the filled order quantity along with the average fill price.
Variants§
Unfilled
All the order quantity has yet to be filled.
Filled
Some (or all) of the order quantity has been filled.
Fields
§
cumulative_qty: Q
Cumulative Amount that was filled.
§
avg_price: QuoteCurrency
The average price it was filled at.
Trait Implementations§
source§impl<Q: Clone> Clone for FilledQuantity<Q>
impl<Q: Clone> Clone for FilledQuantity<Q>
source§fn clone(&self) -> FilledQuantity<Q>
fn clone(&self) -> FilledQuantity<Q>
Returns a copy 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<Q: Debug> Debug for FilledQuantity<Q>
impl<Q: Debug> Debug for FilledQuantity<Q>
source§impl<Q: Hash> Hash for FilledQuantity<Q>
impl<Q: Hash> Hash for FilledQuantity<Q>
source§impl<Q: PartialEq> PartialEq for FilledQuantity<Q>
impl<Q: PartialEq> PartialEq for FilledQuantity<Q>
source§fn eq(&self, other: &FilledQuantity<Q>) -> bool
fn eq(&self, other: &FilledQuantity<Q>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<Q: Eq> Eq for FilledQuantity<Q>
impl<Q> StructuralPartialEq for FilledQuantity<Q>
Auto Trait Implementations§
impl<Q> Freeze for FilledQuantity<Q>where
Q: Freeze,
impl<Q> RefUnwindSafe for FilledQuantity<Q>where
Q: RefUnwindSafe,
impl<Q> Send for FilledQuantity<Q>where
Q: Send,
impl<Q> Sync for FilledQuantity<Q>where
Q: Sync,
impl<Q> Unpin for FilledQuantity<Q>where
Q: Unpin,
impl<Q> UnwindSafe for FilledQuantity<Q>where
Q: 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