Struct lfest::prelude::QuantityFilter
source · pub struct QuantityFilter<S>where
S: Currency,{ /* private fields */ }
Expand description
The SizeFilter
defines the quantity rules that each order needs to follow
The generic currency S
is always the PairedCurrency
of the margin
currency
Implementations§
source§impl<S> QuantityFilter<S>where
S: Currency,
impl<S> QuantityFilter<S>where
S: Currency,
sourcepub fn min_quantity(&self) -> Option<S>
pub fn min_quantity(&self) -> Option<S>
Defines the optional minimum quantity
of any order
sourcepub fn max_quantity(&self) -> Option<S>
pub fn max_quantity(&self) -> Option<S>
Defines the optional maximum quantity
of any order
Trait Implementations§
source§impl<S> Clone for QuantityFilter<S>
impl<S> Clone for QuantityFilter<S>
source§fn clone(&self) -> QuantityFilter<S>
fn clone(&self) -> QuantityFilter<S>
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<S> Debug for QuantityFilter<S>
impl<S> Debug for QuantityFilter<S>
Auto Trait Implementations§
impl<S> Freeze for QuantityFilter<S>where
S: Freeze,
impl<S> RefUnwindSafe for QuantityFilter<S>where
S: RefUnwindSafe,
impl<S> Send for QuantityFilter<S>
impl<S> Sync for QuantityFilter<S>where
S: Sync,
impl<S> Unpin for QuantityFilter<S>where
S: Unpin,
impl<S> UnwindSafe for QuantityFilter<S>where
S: 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