pub struct OrderResponse {
pub order_id: String,
pub broker_order_id: String,
pub status: String,
pub filled_quantity: f64,
pub filled_price: Option<f64>,
pub timestamp: String,
}Expand description
Order response from broker
Fields§
§order_id: String§broker_order_id: String§status: String§filled_quantity: f64§filled_price: Option<f64>§timestamp: StringTrait Implementations§
Source§impl FromNapiValue for OrderResponse
impl FromNapiValue for OrderResponse
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 OrderResponse
impl ToNapiValue for OrderResponse
Source§unsafe fn to_napi_value(env: napi_env, val: OrderResponse) -> Result<napi_value>
unsafe fn to_napi_value(env: napi_env, val: OrderResponse) -> Result<napi_value>
Safety Read more
Source§impl TypeName for OrderResponse
impl TypeName for OrderResponse
Source§impl ValidateNapiValue for OrderResponse
impl ValidateNapiValue for OrderResponse
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 OrderResponse
impl RefUnwindSafe for OrderResponse
impl Send for OrderResponse
impl Sync for OrderResponse
impl Unpin for OrderResponse
impl UnwindSafe for OrderResponse
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