pub struct OrderState {Show 17 fields
pub status: String,
pub init_margin_before: String,
pub maint_margin_before: String,
pub equity_with_loan_before: String,
pub init_margin_change: String,
pub maint_margin_change: String,
pub equity_with_loan_change: String,
pub init_margin_after: String,
pub maint_margin_after: String,
pub equity_with_loan_after: String,
pub commission: f64,
pub min_commission: f64,
pub max_commission: f64,
pub commission_currency: String,
pub warning_text: String,
pub completed_time: String,
pub completed_status: String,
}Fields§
§status: String§init_margin_before: String§maint_margin_before: String§equity_with_loan_before: String§init_margin_change: String§maint_margin_change: String§equity_with_loan_change: String§init_margin_after: String§maint_margin_after: String§equity_with_loan_after: String§commission: f64§min_commission: f64§max_commission: f64§commission_currency: String§warning_text: String§completed_time: String§completed_status: StringImplementations§
Source§impl OrderState
impl OrderState
pub fn new( status: String, init_margin_before: String, maint_margin_before: String, equity_with_loan_before: String, init_margin_change: String, maint_margin_change: String, equity_with_loan_change: String, init_margin_after: String, maint_margin_after: String, equity_with_loan_after: String, commission: f64, min_commission: f64, max_commission: f64, commission_currency: String, warning_text: String, completed_time: String, completed_status: String, ) -> Self
Trait Implementations§
Source§impl Clone for OrderState
impl Clone for OrderState
Source§fn clone(&self) -> OrderState
fn clone(&self) -> OrderState
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OrderState
impl Debug for OrderState
Source§impl Default for OrderState
impl Default for OrderState
Source§fn default() -> OrderState
fn default() -> OrderState
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for OrderState
impl<'de> Deserialize<'de> for OrderState
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 Display for OrderState
impl Display for OrderState
Auto Trait Implementations§
impl Freeze for OrderState
impl RefUnwindSafe for OrderState
impl Send for OrderState
impl Sync for OrderState
impl Unpin for OrderState
impl UnsafeUnpin for OrderState
impl UnwindSafe for OrderState
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