pub struct RuleDecision {
pub action: String,
pub symbol: String,
pub size: f64,
pub reasoning: String,
pub triggered_rules: Vec<TriggeredRule>,
}Expand description
A deterministic order decision produced by the rule engine.
Fields§
§action: String“buy”, “sell”, “close”, or “hold”
symbol: StringTrading symbol
size: f64Position size (from playbook max_position_size)
reasoning: StringHuman-readable explanation of why this decision was made
triggered_rules: Vec<TriggeredRule>Which rules triggered this decision
Trait Implementations§
Source§impl Clone for RuleDecision
impl Clone for RuleDecision
Source§fn clone(&self) -> RuleDecision
fn clone(&self) -> RuleDecision
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 RuleDecision
impl Debug for RuleDecision
Source§impl<'de> Deserialize<'de> for RuleDecision
impl<'de> Deserialize<'de> for RuleDecision
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 RuleDecision
impl RefUnwindSafe for RuleDecision
impl Send for RuleDecision
impl Sync for RuleDecision
impl Unpin for RuleDecision
impl UnsafeUnpin for RuleDecision
impl UnwindSafe for RuleDecision
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