pub struct PreviewOrder {Show 18 fields
pub order_total: String,
pub commission_total: String,
pub errs: Vec<String>,
pub warning: Vec<String>,
pub quote_size: String,
pub base_size: String,
pub best_bid: String,
pub best_ask: String,
pub is_max: bool,
pub order_margin_total: Option<String>,
pub leverage: Option<String>,
pub long_leverage: Option<String>,
pub short_leverage: Option<String>,
pub slippage: Option<String>,
pub preview_id: Option<String>,
pub current_liquidation_buffer: Option<String>,
pub projected_liquidation_buffer: Option<String>,
pub max_leverage: Option<String>,
}Fields§
§order_total: String§commission_total: String§errs: Vec<String>§warning: Vec<String>§quote_size: String§base_size: String§best_bid: String§best_ask: String§is_max: bool§order_margin_total: Option<String>§leverage: Option<String>§long_leverage: Option<String>§short_leverage: Option<String>§slippage: Option<String>§preview_id: Option<String>§current_liquidation_buffer: Option<String>§projected_liquidation_buffer: Option<String>§max_leverage: Option<String>Trait Implementations§
Source§impl Clone for PreviewOrder
impl Clone for PreviewOrder
Source§fn clone(&self) -> PreviewOrder
fn clone(&self) -> PreviewOrder
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 PreviewOrder
impl Debug for PreviewOrder
Source§impl<'de> Deserialize<'de> for PreviewOrder
impl<'de> Deserialize<'de> for PreviewOrder
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
Auto Trait Implementations§
impl Freeze for PreviewOrder
impl RefUnwindSafe for PreviewOrder
impl Send for PreviewOrder
impl Sync for PreviewOrder
impl Unpin for PreviewOrder
impl UnwindSafe for PreviewOrder
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