pub struct Order {
pub id: String,
pub market_pair: String,
pub client_order_id: Option<String>,
pub created_at: Option<u64>,
pub order_type: OrderType,
pub side: Side,
pub status: OrderStatus,
pub size: Decimal,
pub price: Option<Decimal>,
pub remaining: Option<Decimal>,
pub trades: Vec<Trade>,
}
Expand description
This struct represents an order
Fields§
§id: String
§market_pair: String
§client_order_id: Option<String>
§created_at: Option<u64>
§order_type: OrderType
§side: Side
§status: OrderStatus
§size: Decimal
§price: Option<Decimal>
§remaining: Option<Decimal>
§trades: Vec<Trade>
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Order
impl<'de> Deserialize<'de> for Order
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Order, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Order, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<PlaceOrderResponse> for Order
impl From<PlaceOrderResponse> for Order
Source§fn from(resp: PlaceOrderResponse) -> Order
fn from(resp: PlaceOrderResponse) -> Order
Converts to this type from the input type.
Source§impl Serialize for Order
impl Serialize for Order
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. 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