pub struct PerContractFeeModel { /* private fields */ }Implementations§
Trait Implementations§
Source§impl Clone for PerContractFeeModel
impl Clone for PerContractFeeModel
Source§fn clone(&self) -> PerContractFeeModel
fn clone(&self) -> PerContractFeeModel
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 PerContractFeeModel
impl Debug for PerContractFeeModel
Source§impl FeeModel for PerContractFeeModel
impl FeeModel for PerContractFeeModel
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
Auto Trait Implementations§
impl Freeze for PerContractFeeModel
impl RefUnwindSafe for PerContractFeeModel
impl Send for PerContractFeeModel
impl Sync for PerContractFeeModel
impl Unpin for PerContractFeeModel
impl UnsafeUnpin for PerContractFeeModel
impl UnwindSafe for PerContractFeeModel
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