pub struct PeggedOrderPatch {
pub peg_reference: Option<PegReference>,
pub quantity: Option<Quantity>,
pub flags: OrderFlagsPatch,
}Expand description
Represents the patch to a pegged order
Fields§
§peg_reference: Option<PegReference>The new peg reference type
quantity: Option<Quantity>The new quantity of the order
flags: OrderFlagsPatchThe flags to update
Implementations§
Source§impl PeggedOrderPatch
impl PeggedOrderPatch
Sourcepub fn with_peg_reference(self, v: PegReference) -> Self
pub fn with_peg_reference(self, v: PegReference) -> Self
Returns this patch with the peg reference set.
Sourcepub fn with_quantity(self, v: Quantity) -> Self
pub fn with_quantity(self, v: Quantity) -> Self
Returns this patch with the quantity 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 PeggedOrderPatch
impl Clone for PeggedOrderPatch
Source§fn clone(&self) -> PeggedOrderPatch
fn clone(&self) -> PeggedOrderPatch
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 PeggedOrderPatch
impl Debug for PeggedOrderPatch
Source§impl Default for PeggedOrderPatch
impl Default for PeggedOrderPatch
Source§fn default() -> PeggedOrderPatch
fn default() -> PeggedOrderPatch
Returns the “default value” for a type. Read more
Source§impl Deref for PeggedOrderPatch
impl Deref for PeggedOrderPatch
Source§impl DerefMut for PeggedOrderPatch
impl DerefMut for PeggedOrderPatch
Source§impl<'de> Deserialize<'de> for PeggedOrderPatch
impl<'de> Deserialize<'de> for PeggedOrderPatch
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 PeggedOrderPatch
impl PartialEq for PeggedOrderPatch
Source§impl Serialize for PeggedOrderPatch
impl Serialize for PeggedOrderPatch
impl Eq for PeggedOrderPatch
impl StructuralPartialEq for PeggedOrderPatch
Auto Trait Implementations§
impl Freeze for PeggedOrderPatch
impl RefUnwindSafe for PeggedOrderPatch
impl Send for PeggedOrderPatch
impl Sync for PeggedOrderPatch
impl Unpin for PeggedOrderPatch
impl UnsafeUnpin for PeggedOrderPatch
impl UnwindSafe for PeggedOrderPatch
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