pub struct Bar {
pub symbol: String,
pub timestamp: String,
pub open: f64,
pub high: f64,
pub low: f64,
pub close: f64,
pub volume: f64,
}Expand description
Market data bar/candle
Fields§
§symbol: String§timestamp: String§open: f64§high: f64§low: f64§close: f64§volume: f64Trait Implementations§
Source§impl FromNapiValue for Bar
impl FromNapiValue for Bar
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 Bar
impl ToNapiValue for Bar
Source§unsafe fn to_napi_value(env: napi_env, val: Bar) -> Result<napi_value>
unsafe fn to_napi_value(env: napi_env, val: Bar) -> Result<napi_value>
Safety Read more
Source§impl ValidateNapiValue for Bar
impl ValidateNapiValue for Bar
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 Bar
impl RefUnwindSafe for Bar
impl Send for Bar
impl Sync for Bar
impl Unpin for Bar
impl UnwindSafe for Bar
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