pub struct LimitOrderPatch {
pub price: Option<Price>,
pub quantity_policy: Option<QuantityPolicy>,
pub flags: OrderFlagsPatch,
}Expand description
Represents the patch to a limit order
Fields§
§price: Option<Price>The new price of the order
quantity_policy: Option<QuantityPolicy>The new quantity policy of the order
flags: OrderFlagsPatchThe flags to update
Implementations§
Source§impl LimitOrderPatch
impl LimitOrderPatch
Sourcepub fn with_price(self, v: Price) -> Self
pub fn with_price(self, v: Price) -> Self
Returns this patch with the price set.
Sourcepub fn with_quantity_policy(self, v: QuantityPolicy) -> Self
pub fn with_quantity_policy(self, v: QuantityPolicy) -> Self
Returns this patch with the quantity policy set.
Sourcepub fn with_post_only(self, v: bool) -> Self
pub fn with_post_only(self, v: bool) -> Self
Returns this patch with the post-only set.
Sourcepub fn with_time_in_force(self, v: TimeInForce) -> Self
pub fn with_time_in_force(self, v: TimeInForce) -> Self
Returns this patch with the time-in-force set.
Sourcepub fn has_expired_time_in_force(&self, timestamp: Timestamp) -> bool
pub fn has_expired_time_in_force(&self, timestamp: Timestamp) -> bool
Checks if the patch has expired time in force at a given timestamp
Methods from Deref<Target = OrderFlagsPatch>§
Trait Implementations§
Source§impl Clone for LimitOrderPatch
impl Clone for LimitOrderPatch
Source§fn clone(&self) -> LimitOrderPatch
fn clone(&self) -> LimitOrderPatch
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 LimitOrderPatch
impl Debug for LimitOrderPatch
Source§impl Default for LimitOrderPatch
impl Default for LimitOrderPatch
Source§fn default() -> LimitOrderPatch
fn default() -> LimitOrderPatch
Returns the “default value” for a type. Read more
Source§impl Deref for LimitOrderPatch
impl Deref for LimitOrderPatch
Source§impl DerefMut for LimitOrderPatch
impl DerefMut for LimitOrderPatch
Source§impl<'de> Deserialize<'de> for LimitOrderPatch
impl<'de> Deserialize<'de> for LimitOrderPatch
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 LimitOrderPatch
impl PartialEq for LimitOrderPatch
Source§impl Serialize for LimitOrderPatch
impl Serialize for LimitOrderPatch
impl Eq for LimitOrderPatch
impl StructuralPartialEq for LimitOrderPatch
Auto Trait Implementations§
impl Freeze for LimitOrderPatch
impl RefUnwindSafe for LimitOrderPatch
impl Send for LimitOrderPatch
impl Sync for LimitOrderPatch
impl Unpin for LimitOrderPatch
impl UnsafeUnpin for LimitOrderPatch
impl UnwindSafe for LimitOrderPatch
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