pub struct OrderDescription {
pub pair: String,
pub position: Option<String>,
pub side: BuySell,
pub order_type: OrderType,
pub price: Decimal,
pub price_2: Option<Decimal>,
pub leverage: Option<Decimal>,
pub order: String,
pub close: Option<String>,
}
Expand description
Details of an individual order
Fields§
§pair: String
§position: Option<String>
§side: BuySell
§order_type: OrderType
§price: Decimal
§price_2: Option<Decimal>
§leverage: Option<Decimal>
§order: String
§close: Option<String>
Trait Implementations§
Source§impl Clone for OrderDescription
impl Clone for OrderDescription
Source§fn clone(&self) -> OrderDescription
fn clone(&self) -> OrderDescription
Returns a copy 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 OrderDescription
impl Debug for OrderDescription
Source§impl<'de> Deserialize<'de> for OrderDescription
impl<'de> Deserialize<'de> for OrderDescription
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 PartialEq for OrderDescription
impl PartialEq for OrderDescription
impl StructuralPartialEq for OrderDescription
Auto Trait Implementations§
impl Freeze for OrderDescription
impl RefUnwindSafe for OrderDescription
impl Send for OrderDescription
impl Sync for OrderDescription
impl Unpin for OrderDescription
impl UnwindSafe for OrderDescription
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