pub struct TaRule {
pub indicator: String,
pub params: Vec<f64>,
pub condition: String,
pub threshold: f64,
pub threshold_upper: Option<f64>,
pub signal: String,
pub action: Option<String>,
}Fields§
§indicator: String§params: Vec<f64>§condition: String§threshold: f64§threshold_upper: Option<f64>§signal: String§action: Option<String>Optional explicit action override (e.g. “buy”, “sell”, “close”). When absent, the rule executor infers the action from the signal name.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TaRule
impl<'de> Deserialize<'de> for TaRule
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 TaRule
impl RefUnwindSafe for TaRule
impl Send for TaRule
impl Sync for TaRule
impl Unpin for TaRule
impl UnsafeUnpin for TaRule
impl UnwindSafe for TaRule
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