pub struct OrderMatchInfo {
pub client_order_id: ClientOrderId,
pub order_side: OrderSideSpecified,
pub order_type: OrderType,
pub trigger_price: Option<Price>,
pub limit_price: Option<Price>,
pub is_activated: bool,
}Expand description
Lightweight order information for matching/trigger checking.
Fields§
§client_order_id: ClientOrderId§order_side: OrderSideSpecified§order_type: OrderType§trigger_price: Option<Price>§limit_price: Option<Price>§is_activated: boolImplementations§
Source§impl OrderMatchInfo
impl OrderMatchInfo
Sourcepub const fn new(
client_order_id: ClientOrderId,
order_side: OrderSideSpecified,
order_type: OrderType,
trigger_price: Option<Price>,
limit_price: Option<Price>,
is_activated: bool,
) -> Self
pub const fn new( client_order_id: ClientOrderId, order_side: OrderSideSpecified, order_type: OrderType, trigger_price: Option<Price>, limit_price: Option<Price>, is_activated: bool, ) -> Self
Creates a new OrderMatchInfo instance.
Trait Implementations§
Source§impl Clone for OrderMatchInfo
impl Clone for OrderMatchInfo
Source§fn clone(&self) -> OrderMatchInfo
fn clone(&self) -> OrderMatchInfo
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 OrderMatchInfo
impl Debug for OrderMatchInfo
Source§impl From<&PassiveOrderAny> for OrderMatchInfo
impl From<&PassiveOrderAny> for OrderMatchInfo
Source§impl PartialEq for OrderMatchInfo
impl PartialEq for OrderMatchInfo
impl Eq for OrderMatchInfo
impl StructuralPartialEq for OrderMatchInfo
Auto Trait Implementations§
impl Freeze for OrderMatchInfo
impl RefUnwindSafe for OrderMatchInfo
impl Send for OrderMatchInfo
impl Sync for OrderMatchInfo
impl Unpin for OrderMatchInfo
impl UnsafeUnpin for OrderMatchInfo
impl UnwindSafe for OrderMatchInfo
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more