pub struct RiskConfig {
pub max_position_size_pct: f64,
pub stop_loss_pct: f64,
pub take_profit_pct: f64,
}Expand description
Configuration values used by the RiskManager.
Fields§
§max_position_size_pct: f64§stop_loss_pct: f64§take_profit_pct: f64Trait Implementations§
Source§impl Clone for RiskConfig
impl Clone for RiskConfig
Source§fn clone(&self) -> RiskConfig
fn clone(&self) -> RiskConfig
Returns a duplicate 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 Debug for RiskConfig
impl Debug for RiskConfig
Auto Trait Implementations§
impl Freeze for RiskConfig
impl RefUnwindSafe for RiskConfig
impl Send for RiskConfig
impl Sync for RiskConfig
impl Unpin for RiskConfig
impl UnwindSafe for RiskConfig
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