pub struct Order {Show 13 fields
pub id: String,
pub product_id: String,
pub side: OrderSide,
pub stp: Option<String>,
pub _type: OrderType,
pub post_only: bool,
pub created_at: NaiveDateTime,
pub fill_fees: Decimal,
pub filled_size: Decimal,
pub executed_value: Decimal,
pub status: OrderStatus,
pub settled: bool,
pub stop: Option<OrderStop>,
}
Expand description
This struct represents an order
Fields§
§id: String
§product_id: String
§side: OrderSide
§stp: Option<String>
§_type: OrderType
§post_only: bool
§created_at: NaiveDateTime
§fill_fees: Decimal
§filled_size: Decimal
§executed_value: Decimal
§status: OrderStatus
§settled: bool
§stop: Option<OrderStop>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Order
impl<'de> Deserialize<'de> for Order
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Order
impl RefUnwindSafe for Order
impl Send for Order
impl Sync for Order
impl Unpin for Order
impl UnwindSafe for Order
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