pub struct Order {
pub id: OrderId,
pub market: MarketId,
pub dir: Dir,
pub quantity: Decimal,
pub trader: Option<UserId>,
pub account: Option<AccountId>,
pub order_type: OrderType,
pub time_in_force: TimeInForce,
pub quote_id: Option<Str>,
pub source: OrderSource,
pub parent_order: Option<ParentOrder>,
}Fields§
§id: OrderId§market: MarketId§dir: Dir§quantity: Decimal§trader: Option<UserId>§account: Option<AccountId>§order_type: OrderType§time_in_force: TimeInForce§quote_id: Option<Str>§source: OrderSource§parent_order: Option<ParentOrder>Implementations§
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
Source§impl From<Order> for CoinbaseOrder
impl From<Order> for CoinbaseOrder
Source§impl From<Order> for CoinbasePrimeOrder
impl From<Order> for CoinbasePrimeOrder
Source§impl From<Order> for DeribitOrder
impl From<Order> for DeribitOrder
Source§impl From<Order> for FalconXOrder
impl From<Order> for FalconXOrder
Source§impl From<Order> for KrakenOrder
impl From<Order> for KrakenOrder
Source§impl From<Order> for WintermuteOrder
impl From<Order> for WintermuteOrder
Source§impl JsonSchema for Order
impl JsonSchema for Order
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moreSource§impl Ord for Order
impl Ord for Order
Source§impl PartialOrd for Order
impl PartialOrd for Order
impl Copy for Order
impl Eq for Order
impl StructuralPartialEq for Order
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.