pub enum Commission {
Percent(f64),
CashPerContract(f64),
CashPerOrder(f64),
}Expand description
How a strategy declaration charges commission.
Variants§
Percent(f64)
A percentage of the traded value.
CashPerContract(f64)
A fixed amount per contract traded.
CashPerOrder(f64)
A fixed amount per order.
Trait Implementations§
Source§impl Clone for Commission
impl Clone for Commission
Source§fn clone(&self) -> Commission
fn clone(&self) -> Commission
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 moreimpl Copy for Commission
Source§impl Debug for Commission
impl Debug for Commission
Source§impl PartialEq for Commission
impl PartialEq for Commission
impl StructuralPartialEq for Commission
Auto Trait Implementations§
impl Freeze for Commission
impl RefUnwindSafe for Commission
impl Send for Commission
impl Sync for Commission
impl Unpin for Commission
impl UnsafeUnpin for Commission
impl UnwindSafe for Commission
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