pub struct RiskConfig {
pub confidence_level: f64,
pub lookback_periods: u32,
pub method: String,
}Expand description
Risk calculation configuration
Fields§
§confidence_level: f64§lookback_periods: u32§method: StringTrait Implementations§
Source§impl Default for RiskConfig
impl Default for RiskConfig
Source§impl FromNapiValue for RiskConfig
impl FromNapiValue for RiskConfig
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 RiskConfig
impl ToNapiValue for RiskConfig
Source§unsafe fn to_napi_value(env: napi_env, val: RiskConfig) -> Result<napi_value>
unsafe fn to_napi_value(env: napi_env, val: RiskConfig) -> Result<napi_value>
Safety Read more
Source§impl TypeName for RiskConfig
impl TypeName for RiskConfig
Source§impl ValidateNapiValue for RiskConfig
impl ValidateNapiValue for RiskConfig
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 RiskConfig
impl RefUnwindSafe for RiskConfig
impl Send for RiskConfig
impl Sync for RiskConfig
impl Unpin for RiskConfig
impl UnwindSafe for RiskConfig
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