pub struct OrderFilter {
pub min_size: f64,
pub min_age: Option<TimeDelta>,
pub max_age: Option<TimeDelta>,
pub exclude_participants: Vec<u64>,
}Expand description
Which resting orders count when they are summed into levels, for ladders, heatmaps and the book size study. Every field narrows the set. Filters are exact: an order whose placement time or participant the feed did not supply is neither guessed at nor dropped for lacking the field it is not filtered on.
Fields§
§min_size: f64Orders smaller than this are left out before aggregation. Must be finite and not negative, else no order counts.
min_age: Option<TimeDelta>Only orders that have rested at least this long at the time of the book, measured from the placement time the feed supplied. Orders without one cannot be shown to have rested that long and are left out. A negative age counts as zero.
max_age: Option<TimeDelta>Only orders that have rested less than this long at the time of the book, measured from the
placement time the feed supplied: the most recently placed ones. Orders without one cannot
be shown to be that recent and are left out. A negative age counts as zero. With
min_age of the same age, every order with a placement time passes exactly
one of the two.
exclude_participants: Vec<u64>Orders of these participants are left out. Orders without a participant stay.
Implementations§
Source§impl OrderFilter
impl OrderFilter
Trait Implementations§
Source§impl Clone for OrderFilter
impl Clone for OrderFilter
Source§fn clone(&self) -> OrderFilter
fn clone(&self) -> OrderFilter
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for OrderFilter
impl Debug for OrderFilter
Source§impl Default for OrderFilter
impl Default for OrderFilter
Source§fn default() -> OrderFilter
fn default() -> OrderFilter
Source§impl<'de> Deserialize<'de> for OrderFilterwhere
OrderFilter: Default,
impl<'de> Deserialize<'de> for OrderFilterwhere
OrderFilter: Default,
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>,
Source§impl PartialEq for OrderFilter
impl PartialEq for OrderFilter
Source§impl Serialize for OrderFilter
impl Serialize for OrderFilter
impl StructuralPartialEq for OrderFilter
Auto Trait Implementations§
impl Freeze for OrderFilter
impl RefUnwindSafe for OrderFilter
impl Send for OrderFilter
impl Sync for OrderFilter
impl Unpin for OrderFilter
impl UnsafeUnpin for OrderFilter
impl UnwindSafe for OrderFilter
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more