pub struct ModifyOrderBuilder { /* private fields */ }Expand description
Builder for a validated ModifyOrder.
Implementations§
Source§impl ModifyOrderBuilder
impl ModifyOrderBuilder
Sourcepub const fn limit_price(self, limit_price: Decimal) -> Self
pub const fn limit_price(self, limit_price: Decimal) -> Self
Sets the replacement limit price.
Sourcepub const fn stop_price(self, stop_price: Decimal) -> Self
pub const fn stop_price(self, stop_price: Decimal) -> Self
Sets the replacement stop price.
Sourcepub const fn trail_price(self, trail_price: Decimal) -> Self
pub const fn trail_price(self, trail_price: Decimal) -> Self
Sets the replacement trailing price.
Sourcepub fn build(self) -> Result<ModifyOrder, RequestValidationError>
pub fn build(self) -> Result<ModifyOrder, RequestValidationError>
Validates and builds the order-modification request.
§Errors
Returns RequestValidationError::NonPositiveReplacementSize when a
replacement quantity is zero or negative, or
RequestValidationError::EmptyModification when no replacement value was
supplied.
Trait Implementations§
Source§impl Clone for ModifyOrderBuilder
impl Clone for ModifyOrderBuilder
Source§fn clone(&self) -> ModifyOrderBuilder
fn clone(&self) -> ModifyOrderBuilder
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 moreimpl Copy for ModifyOrderBuilder
Auto Trait Implementations§
impl Freeze for ModifyOrderBuilder
impl RefUnwindSafe for ModifyOrderBuilder
impl Send for ModifyOrderBuilder
impl Sync for ModifyOrderBuilder
impl Unpin for ModifyOrderBuilder
impl UnsafeUnpin for ModifyOrderBuilder
impl UnwindSafe for ModifyOrderBuilder
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