Struct backtester::models::Signals
source · pub struct Signals {
pub eq: (Option<f64>, Option<f64>),
pub neq: (Option<f64>, Option<f64>),
pub gt: (Option<f64>, Option<f64>),
pub lt: (Option<f64>, Option<f64>),
pub signal_type: SignalType,
}
Fields§
§eq: (Option<f64>, Option<f64>)
§neq: (Option<f64>, Option<f64>)
§gt: (Option<f64>, Option<f64>)
§lt: (Option<f64>, Option<f64>)
§signal_type: SignalType
Implementations§
source§impl Signals
impl Signals
pub fn new( eq: (Option<f64>, Option<f64>), neq: (Option<f64>, Option<f64>), gt: (Option<f64>, Option<f64>), lt: (Option<f64>, Option<f64>), signal_type: SignalType ) -> Self
Trait Implementations§
source§impl<'de> Deserialize<'de> for Signals
impl<'de> Deserialize<'de> for Signals
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 RefUnwindSafe for Signals
impl Send for Signals
impl Sync for Signals
impl Unpin for Signals
impl UnwindSafe for Signals
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