pub struct JsSignal {
pub id: String,
pub strategy_id: String,
pub symbol: String,
pub direction: String,
pub confidence: f64,
pub entry_price: Option<String>,
pub stop_loss: Option<String>,
pub take_profit: Option<String>,
pub quantity: Option<String>,
pub reasoning: String,
pub timestamp: String,
}Expand description
JavaScript-compatible signal data
Fields§
§id: String§strategy_id: String§symbol: String§direction: String§confidence: f64§entry_price: Option<String>§stop_loss: Option<String>§take_profit: Option<String>§quantity: Option<String>§reasoning: String§timestamp: StringTrait Implementations§
Source§impl FromNapiValue for JsSignal
impl FromNapiValue for JsSignal
Source§unsafe fn from_napi_value(env: napi_env, napi_val: napi_value) -> Result<Self>
unsafe fn from_napi_value(env: napi_env, napi_val: napi_value) -> Result<Self>
Safety Read more
fn from_unknown(value: JsUnknown) -> Result<Self, Error>
Source§impl ToNapiValue for JsSignal
impl ToNapiValue for JsSignal
Source§unsafe fn to_napi_value(env: napi_env, val: JsSignal) -> Result<napi_value>
unsafe fn to_napi_value(env: napi_env, val: JsSignal) -> Result<napi_value>
Safety Read more
Source§impl ValidateNapiValue for JsSignal
impl ValidateNapiValue for JsSignal
Source§unsafe fn validate(
env: *mut napi_env__,
napi_val: *mut napi_value__,
) -> Result<*mut napi_value__, Error>
unsafe fn validate( env: *mut napi_env__, napi_val: *mut napi_value__, ) -> Result<*mut napi_value__, Error>
Safety Read more
Auto Trait Implementations§
impl Freeze for JsSignal
impl RefUnwindSafe for JsSignal
impl Send for JsSignal
impl Sync for JsSignal
impl Unpin for JsSignal
impl UnwindSafe for JsSignal
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