pub struct Quote {
pub symbol: String,
pub bid: f64,
pub ask: f64,
pub bid_size: u32,
pub ask_size: u32,
pub last: f64,
pub last_size: u32,
pub timestamp: String,
}Expand description
Real-time quote
Fields§
§symbol: String§bid: f64§ask: f64§bid_size: u32§ask_size: u32§last: f64§last_size: u32§timestamp: StringTrait Implementations§
Source§impl FromNapiValue for Quote
impl FromNapiValue for Quote
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 Quote
impl ToNapiValue for Quote
Source§unsafe fn to_napi_value(env: napi_env, val: Quote) -> Result<napi_value>
unsafe fn to_napi_value(env: napi_env, val: Quote) -> Result<napi_value>
Safety Read more
Source§impl ValidateNapiValue for Quote
impl ValidateNapiValue for Quote
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 Quote
impl RefUnwindSafe for Quote
impl Send for Quote
impl Sync for Quote
impl Unpin for Quote
impl UnwindSafe for Quote
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