pub enum SizingPolicyMsg {
FixedLot {
lots: f64,
},
FixedRiskAmount {
amount: f64,
},
BalanceRiskPercent {
percent: f64,
},
}Expand description
Wire-safe in-place account sizing policy.
Variants§
FixedLot
Use a fixed lot quantity scaled by the entry risk multiplier.
FixedRiskAmount
Risk a fixed amount in account currency.
BalanceRiskPercent
Risk a percentage of the realized balance before the entry.
Trait Implementations§
Source§impl Clone for SizingPolicyMsg
impl Clone for SizingPolicyMsg
Source§fn clone(&self) -> SizingPolicyMsg
fn clone(&self) -> SizingPolicyMsg
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 SizingPolicyMsg
impl Debug for SizingPolicyMsg
Source§impl<'de> Deserialize<'de> for SizingPolicyMsg
impl<'de> Deserialize<'de> for SizingPolicyMsg
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SizingPolicyMsg
impl RefUnwindSafe for SizingPolicyMsg
impl Send for SizingPolicyMsg
impl Sync for SizingPolicyMsg
impl Unpin for SizingPolicyMsg
impl UnsafeUnpin for SizingPolicyMsg
impl UnwindSafe for SizingPolicyMsg
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