pub enum FeeModelAny {
Fixed(FixedFeeModel),
MakerTaker(MakerTakerFeeModel),
PerContract(PerContractFeeModel),
ProbabilityPrice(ProbabilityPriceFeeModel),
CappedOption(CappedOptionFeeModel),
TieredNotionalOption(TieredNotionalOptionFeeModel),
}Variants§
Fixed(FixedFeeModel)
MakerTaker(MakerTakerFeeModel)
PerContract(PerContractFeeModel)
ProbabilityPrice(ProbabilityPriceFeeModel)
CappedOption(CappedOptionFeeModel)
TieredNotionalOption(TieredNotionalOptionFeeModel)
Trait Implementations§
Source§impl Clone for FeeModelAny
impl Clone for FeeModelAny
Source§fn clone(&self) -> FeeModelAny
fn clone(&self) -> FeeModelAny
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FeeModelAny
impl Debug for FeeModelAny
Source§impl Default for FeeModelAny
impl Default for FeeModelAny
Source§impl FeeModel for FeeModelAny
impl FeeModel for FeeModelAny
Source§fn get_commission(
&self,
order: &OrderAny,
fill_quantity: Quantity,
fill_px: Price,
instrument: &InstrumentAny,
) -> Result<Money>
fn get_commission( &self, order: &OrderAny, fill_quantity: Quantity, fill_px: Price, instrument: &InstrumentAny, ) -> Result<Money>
Calculates commission for a fill. Read more
Source§impl From<FeeModelAny> for FeeModelHandle
impl From<FeeModelAny> for FeeModelHandle
Source§fn from(model: FeeModelAny) -> Self
fn from(model: FeeModelAny) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for FeeModelAny
impl RefUnwindSafe for FeeModelAny
impl Send for FeeModelAny
impl Sync for FeeModelAny
impl Unpin for FeeModelAny
impl UnsafeUnpin for FeeModelAny
impl UnwindSafe for FeeModelAny
Blanket Implementations§
impl<T> Allocation for T
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