pub struct OrderUpdate {
pub limit_price: Option<String>,
pub stop_price: Option<String>,
pub order_type: Option<OrderType>,
pub quantity: Option<String>,
pub advanced_options: Option<AdvancedOrderOptions>,
}Fields§
§limit_price: Option<String>The limit price for this updated Order.
stop_price: Option<String>The stop price for this updated Order.
order_type: Option<OrderType>The order type for this updated Order.
quantity: Option<String>The quantity for this updated Order.
advanced_options: Option<AdvancedOrderOptions>The advanced options of this updated Order.
Implementations§
Source§impl OrderUpdate
impl OrderUpdate
Sourcepub fn limit_price(self, price: impl Into<String>) -> Self
pub fn limit_price(self, price: impl Into<String>) -> Self
Set the limit price of the updated Order.
Sourcepub fn stop_price(self, price: impl Into<String>) -> Self
pub fn stop_price(self, price: impl Into<String>) -> Self
Set the stop price of the updated Order.
Sourcepub fn order_type(self, order_type: OrderType) -> Self
pub fn order_type(self, order_type: OrderType) -> Self
Set the order type of the updated Order.
Sourcepub fn advanced_options(self, opts: AdvancedOrderOptions) -> Self
pub fn advanced_options(self, opts: AdvancedOrderOptions) -> Self
Set the advanced options of the updated Order.
Trait Implementations§
Source§impl Clone for OrderUpdate
impl Clone for OrderUpdate
Source§fn clone(&self) -> OrderUpdate
fn clone(&self) -> OrderUpdate
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 OrderUpdate
impl Debug for OrderUpdate
Source§impl Default for OrderUpdate
impl Default for OrderUpdate
Source§fn default() -> OrderUpdate
fn default() -> OrderUpdate
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for OrderUpdate
impl<'de> Deserialize<'de> for OrderUpdate
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 OrderUpdate
impl RefUnwindSafe for OrderUpdate
impl Send for OrderUpdate
impl Sync for OrderUpdate
impl Unpin for OrderUpdate
impl UnwindSafe for OrderUpdate
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