pub struct ModifyOrder { /* private fields */ }Expand description
Order modification parameters.
Construct this request with ModifyOrder::builder, which requires at
least one replacement value and rejects non-positive replacement sizes.
Implementations§
Source§impl ModifyOrder
impl ModifyOrder
Sourcepub const fn builder(
account_id: AccountId,
order_id: OrderId,
) -> ModifyOrderBuilder
pub const fn builder( account_id: AccountId, order_id: OrderId, ) -> ModifyOrderBuilder
Starts a validated order-modification request.
Sourcepub const fn account_id(&self) -> AccountId
pub const fn account_id(&self) -> AccountId
Returns the provider account.
Sourcepub const fn limit_price(&self) -> Option<Decimal>
pub const fn limit_price(&self) -> Option<Decimal>
Returns the optional replacement limit price.
Sourcepub const fn stop_price(&self) -> Option<Decimal>
pub const fn stop_price(&self) -> Option<Decimal>
Returns the optional replacement stop price.
Sourcepub const fn trail_price(&self) -> Option<Decimal>
pub const fn trail_price(&self) -> Option<Decimal>
Returns the optional absolute replacement price level for a trailing stop.
This input differs from the distance returned in Order::trail_price.
Trait Implementations§
Source§impl Clone for ModifyOrder
impl Clone for ModifyOrder
Source§fn clone(&self) -> ModifyOrder
fn clone(&self) -> ModifyOrder
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ModifyOrder
impl Debug for ModifyOrder
impl Eq for ModifyOrder
Source§impl PartialEq for ModifyOrder
impl PartialEq for ModifyOrder
Source§impl Serialize for ModifyOrder
impl Serialize for ModifyOrder
impl StructuralPartialEq for ModifyOrder
Auto Trait Implementations§
impl Freeze for ModifyOrder
impl RefUnwindSafe for ModifyOrder
impl Send for ModifyOrder
impl Sync for ModifyOrder
impl Unpin for ModifyOrder
impl UnsafeUnpin for ModifyOrder
impl UnwindSafe for ModifyOrder
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