pub struct MarketDataConfig {
pub provider: String,
pub api_key: Option<String>,
pub api_secret: Option<String>,
pub websocket_enabled: bool,
}Expand description
Market data provider configuration
Fields§
§provider: String§api_key: Option<String>§api_secret: Option<String>§websocket_enabled: boolTrait Implementations§
Source§impl FromNapiValue for MarketDataConfig
impl FromNapiValue for MarketDataConfig
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 MarketDataConfig
impl ToNapiValue for MarketDataConfig
Source§unsafe fn to_napi_value(
env: napi_env,
val: MarketDataConfig,
) -> Result<napi_value>
unsafe fn to_napi_value( env: napi_env, val: MarketDataConfig, ) -> Result<napi_value>
Safety Read more
Source§impl TypeName for MarketDataConfig
impl TypeName for MarketDataConfig
Source§impl ValidateNapiValue for MarketDataConfig
impl ValidateNapiValue for MarketDataConfig
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 MarketDataConfig
impl RefUnwindSafe for MarketDataConfig
impl Send for MarketDataConfig
impl Sync for MarketDataConfig
impl Unpin for MarketDataConfig
impl UnwindSafe for MarketDataConfig
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