Order

Struct Order 

Source
pub struct Order {
Show 52 fields pub advanced: Option<Advanced>, pub amount: Option<f64>, pub api: bool, pub app_name: Option<String>, pub auto_replaced: Option<bool>, pub average_price: Option<f64>, pub block_trade: Option<bool>, pub cancel_reason: Option<CancelReason>, pub contracts: Option<f64>, pub creation_timestamp: i64, pub direction: Direction, pub display_amount: Option<f64>, pub filled_amount: Option<f64>, pub implv: Option<f64>, pub instrument_name: Option<String>, pub is_liquidation: Option<bool>, pub is_primary_otoco: Option<bool>, pub is_rebalance: Option<bool>, pub is_secondary_oto: Option<bool>, pub label: String, pub last_update_timestamp: i64, pub mmp: Option<bool>, pub mmp_cancelled: Option<bool>, pub mmp_group: Option<String>, pub mobile: Option<bool>, pub oco_ref: Option<String>, pub order_id: String, pub order_state: OrderState, pub order_type: OrderType, pub original_order_type: Option<OriginalOrderType>, pub oto_order_ids: Option<Vec<String>>, pub post_only: bool, pub price: Value, pub primary_order_id: Option<String>, pub quote: Option<bool>, pub quote_id: Option<String>, pub quote_set_id: Option<String>, pub reduce_only: Option<bool>, pub refresh_amount: Option<f64>, pub reject_post_only: Option<bool>, pub replaced: Option<bool>, pub risk_reducing: Option<bool>, pub time_in_force: TimeInForce, pub trigger: Option<Trigger>, pub trigger_fill_condition: Option<TriggerFillCondition>, pub trigger_offset: Option<f64>, pub trigger_order_id: Option<String>, pub trigger_price: Option<f64>, pub trigger_reference_price: Option<f64>, pub triggered: Option<bool>, pub usd: Option<f64>, pub web: Option<bool>,
}

Fields§

§advanced: Option<Advanced>§amount: Option<f64>§api: bool§app_name: Option<String>§auto_replaced: Option<bool>§average_price: Option<f64>§block_trade: Option<bool>§cancel_reason: Option<CancelReason>§contracts: Option<f64>§creation_timestamp: i64§direction: Direction§display_amount: Option<f64>§filled_amount: Option<f64>§implv: Option<f64>§instrument_name: Option<String>§is_liquidation: Option<bool>§is_primary_otoco: Option<bool>§is_rebalance: Option<bool>§is_secondary_oto: Option<bool>§label: String§last_update_timestamp: i64§mmp: Option<bool>§mmp_cancelled: Option<bool>§mmp_group: Option<String>§mobile: Option<bool>§oco_ref: Option<String>§order_id: String§order_state: OrderState§order_type: OrderType§original_order_type: Option<OriginalOrderType>§oto_order_ids: Option<Vec<String>>§post_only: bool§price: Value§primary_order_id: Option<String>§quote: Option<bool>§quote_id: Option<String>§quote_set_id: Option<String>§reduce_only: Option<bool>§refresh_amount: Option<f64>§reject_post_only: Option<bool>§replaced: Option<bool>§risk_reducing: Option<bool>§time_in_force: TimeInForce§trigger: Option<Trigger>§trigger_fill_condition: Option<TriggerFillCondition>§trigger_offset: Option<f64>§trigger_order_id: Option<String>§trigger_price: Option<f64>§trigger_reference_price: Option<f64>§triggered: Option<bool>§usd: Option<f64>§web: Option<bool>

Trait Implementations§

Source§

impl Clone for Order

Source§

fn clone(&self) -> Order

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Order

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for Order

Source§

fn default() -> Order

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for Order

Source§

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 PartialEq for Order

Source§

fn eq(&self, other: &Order) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for Order

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,