pub struct OrderState {Show 30 fields
pub status: Option<String>,
pub init_margin_before: Option<f64>,
pub maint_margin_before: Option<f64>,
pub equity_with_loan_before: Option<f64>,
pub init_margin_change: Option<f64>,
pub maint_margin_change: Option<f64>,
pub equity_with_loan_change: Option<f64>,
pub init_margin_after: Option<f64>,
pub maint_margin_after: Option<f64>,
pub equity_with_loan_after: Option<f64>,
pub commission_and_fees: Option<f64>,
pub min_commission_and_fees: Option<f64>,
pub max_commission_and_fees: Option<f64>,
pub commission_and_fees_currency: Option<String>,
pub margin_currency: Option<String>,
pub init_margin_before_outside_rth: Option<f64>,
pub maint_margin_before_outside_rth: Option<f64>,
pub equity_with_loan_before_outside_rth: Option<f64>,
pub init_margin_change_outside_rth: Option<f64>,
pub maint_margin_change_outside_rth: Option<f64>,
pub equity_with_loan_change_outside_rth: Option<f64>,
pub init_margin_after_outside_rth: Option<f64>,
pub maint_margin_after_outside_rth: Option<f64>,
pub equity_with_loan_after_outside_rth: Option<f64>,
pub suggested_size: Option<String>,
pub reject_reason: Option<String>,
pub order_allocations: Vec<OrderAllocation>,
pub warning_text: Option<String>,
pub completed_time: Option<String>,
pub completed_status: Option<String>,
}Fields§
§status: Option<String>§init_margin_before: Option<f64>§maint_margin_before: Option<f64>§equity_with_loan_before: Option<f64>§init_margin_change: Option<f64>§maint_margin_change: Option<f64>§equity_with_loan_change: Option<f64>§init_margin_after: Option<f64>§maint_margin_after: Option<f64>§equity_with_loan_after: Option<f64>§commission_and_fees: Option<f64>§min_commission_and_fees: Option<f64>§max_commission_and_fees: Option<f64>§commission_and_fees_currency: Option<String>§margin_currency: Option<String>§init_margin_before_outside_rth: Option<f64>§maint_margin_before_outside_rth: Option<f64>§equity_with_loan_before_outside_rth: Option<f64>§init_margin_change_outside_rth: Option<f64>§maint_margin_change_outside_rth: Option<f64>§equity_with_loan_change_outside_rth: Option<f64>§init_margin_after_outside_rth: Option<f64>§maint_margin_after_outside_rth: Option<f64>§equity_with_loan_after_outside_rth: Option<f64>§suggested_size: Option<String>§reject_reason: Option<String>§order_allocations: Vec<OrderAllocation>§warning_text: Option<String>§completed_time: Option<String>§completed_status: Option<String>Implementations§
Source§impl OrderState
impl OrderState
Sourcepub fn status(&self) -> &str
pub fn status(&self) -> &str
Returns the value of status, or the default value if status is unset.
Sourcepub fn init_margin_before(&self) -> f64
pub fn init_margin_before(&self) -> f64
Returns the value of init_margin_before, or the default value if init_margin_before is unset.
Sourcepub fn maint_margin_before(&self) -> f64
pub fn maint_margin_before(&self) -> f64
Returns the value of maint_margin_before, or the default value if maint_margin_before is unset.
Sourcepub fn equity_with_loan_before(&self) -> f64
pub fn equity_with_loan_before(&self) -> f64
Returns the value of equity_with_loan_before, or the default value if equity_with_loan_before is unset.
Sourcepub fn init_margin_change(&self) -> f64
pub fn init_margin_change(&self) -> f64
Returns the value of init_margin_change, or the default value if init_margin_change is unset.
Sourcepub fn maint_margin_change(&self) -> f64
pub fn maint_margin_change(&self) -> f64
Returns the value of maint_margin_change, or the default value if maint_margin_change is unset.
Sourcepub fn equity_with_loan_change(&self) -> f64
pub fn equity_with_loan_change(&self) -> f64
Returns the value of equity_with_loan_change, or the default value if equity_with_loan_change is unset.
Sourcepub fn init_margin_after(&self) -> f64
pub fn init_margin_after(&self) -> f64
Returns the value of init_margin_after, or the default value if init_margin_after is unset.
Sourcepub fn maint_margin_after(&self) -> f64
pub fn maint_margin_after(&self) -> f64
Returns the value of maint_margin_after, or the default value if maint_margin_after is unset.
Sourcepub fn equity_with_loan_after(&self) -> f64
pub fn equity_with_loan_after(&self) -> f64
Returns the value of equity_with_loan_after, or the default value if equity_with_loan_after is unset.
Sourcepub fn commission_and_fees(&self) -> f64
pub fn commission_and_fees(&self) -> f64
Returns the value of commission_and_fees, or the default value if commission_and_fees is unset.
Sourcepub fn min_commission_and_fees(&self) -> f64
pub fn min_commission_and_fees(&self) -> f64
Returns the value of min_commission_and_fees, or the default value if min_commission_and_fees is unset.
Sourcepub fn max_commission_and_fees(&self) -> f64
pub fn max_commission_and_fees(&self) -> f64
Returns the value of max_commission_and_fees, or the default value if max_commission_and_fees is unset.
Sourcepub fn commission_and_fees_currency(&self) -> &str
pub fn commission_and_fees_currency(&self) -> &str
Returns the value of commission_and_fees_currency, or the default value if commission_and_fees_currency is unset.
Sourcepub fn margin_currency(&self) -> &str
pub fn margin_currency(&self) -> &str
Returns the value of margin_currency, or the default value if margin_currency is unset.
Sourcepub fn init_margin_before_outside_rth(&self) -> f64
pub fn init_margin_before_outside_rth(&self) -> f64
Returns the value of init_margin_before_outside_rth, or the default value if init_margin_before_outside_rth is unset.
Sourcepub fn maint_margin_before_outside_rth(&self) -> f64
pub fn maint_margin_before_outside_rth(&self) -> f64
Returns the value of maint_margin_before_outside_rth, or the default value if maint_margin_before_outside_rth is unset.
Sourcepub fn equity_with_loan_before_outside_rth(&self) -> f64
pub fn equity_with_loan_before_outside_rth(&self) -> f64
Returns the value of equity_with_loan_before_outside_rth, or the default value if equity_with_loan_before_outside_rth is unset.
Sourcepub fn init_margin_change_outside_rth(&self) -> f64
pub fn init_margin_change_outside_rth(&self) -> f64
Returns the value of init_margin_change_outside_rth, or the default value if init_margin_change_outside_rth is unset.
Sourcepub fn maint_margin_change_outside_rth(&self) -> f64
pub fn maint_margin_change_outside_rth(&self) -> f64
Returns the value of maint_margin_change_outside_rth, or the default value if maint_margin_change_outside_rth is unset.
Sourcepub fn equity_with_loan_change_outside_rth(&self) -> f64
pub fn equity_with_loan_change_outside_rth(&self) -> f64
Returns the value of equity_with_loan_change_outside_rth, or the default value if equity_with_loan_change_outside_rth is unset.
Sourcepub fn init_margin_after_outside_rth(&self) -> f64
pub fn init_margin_after_outside_rth(&self) -> f64
Returns the value of init_margin_after_outside_rth, or the default value if init_margin_after_outside_rth is unset.
Sourcepub fn maint_margin_after_outside_rth(&self) -> f64
pub fn maint_margin_after_outside_rth(&self) -> f64
Returns the value of maint_margin_after_outside_rth, or the default value if maint_margin_after_outside_rth is unset.
Sourcepub fn equity_with_loan_after_outside_rth(&self) -> f64
pub fn equity_with_loan_after_outside_rth(&self) -> f64
Returns the value of equity_with_loan_after_outside_rth, or the default value if equity_with_loan_after_outside_rth is unset.
Sourcepub fn suggested_size(&self) -> &str
pub fn suggested_size(&self) -> &str
Returns the value of suggested_size, or the default value if suggested_size is unset.
Sourcepub fn reject_reason(&self) -> &str
pub fn reject_reason(&self) -> &str
Returns the value of reject_reason, or the default value if reject_reason is unset.
Sourcepub fn warning_text(&self) -> &str
pub fn warning_text(&self) -> &str
Returns the value of warning_text, or the default value if warning_text is unset.
Sourcepub fn completed_time(&self) -> &str
pub fn completed_time(&self) -> &str
Returns the value of completed_time, or the default value if completed_time is unset.
Sourcepub fn completed_status(&self) -> &str
pub fn completed_status(&self) -> &str
Returns the value of completed_status, or the default value if completed_status is unset.
Trait Implementations§
Source§impl Clone for OrderState
impl Clone for OrderState
Source§fn clone(&self) -> OrderState
fn clone(&self) -> OrderState
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for OrderState
impl Debug for OrderState
Source§impl Default for OrderState
impl Default for OrderState
Source§impl Message for OrderState
impl Message for OrderState
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.