pub struct StrategyConfig {
pub id: String,
pub strategy_type: String,
pub symbols: Vec<String>,
pub enabled: bool,
pub parameters: Value,
}Expand description
Individual strategy configuration
Fields§
§id: StringStrategy ID
strategy_type: StringStrategy type (momentum, mean_reversion, etc.)
symbols: Vec<String>Symbols to trade
enabled: boolEnable this strategy
parameters: ValueStrategy-specific parameters
Trait Implementations§
Source§impl Clone for StrategyConfig
impl Clone for StrategyConfig
Source§fn clone(&self) -> StrategyConfig
fn clone(&self) -> StrategyConfig
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 StrategyConfig
impl Debug for StrategyConfig
Source§impl<'de> Deserialize<'de> for StrategyConfig
impl<'de> Deserialize<'de> for StrategyConfig
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
Source§impl Serialize for StrategyConfig
impl Serialize for StrategyConfig
Source§impl Validate for StrategyConfig
impl Validate for StrategyConfig
Source§impl<'v_a> ValidateArgs<'v_a> for StrategyConfig
impl<'v_a> ValidateArgs<'v_a> for StrategyConfig
Auto Trait Implementations§
impl Freeze for StrategyConfig
impl RefUnwindSafe for StrategyConfig
impl Send for StrategyConfig
impl Sync for StrategyConfig
impl Unpin for StrategyConfig
impl UnwindSafe for StrategyConfig
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