pub struct OrderKey<ExchangeKey = ExchangeIndex, InstrumentKey = InstrumentIndex> {
pub exchange: ExchangeKey,
pub instrument: InstrumentKey,
pub strategy: StrategyId,
pub cid: ClientOrderId,
}
Fields§
§exchange: ExchangeKey
§instrument: InstrumentKey
§strategy: StrategyId
§cid: ClientOrderId
Implementations§
Source§impl<ExchangeKey, InstrumentKey> OrderKey<ExchangeKey, InstrumentKey>
impl<ExchangeKey, InstrumentKey> OrderKey<ExchangeKey, InstrumentKey>
pub const fn new( exchange: ExchangeKey, instrument: InstrumentKey, strategy: StrategyId, cid: ClientOrderId, ) -> OrderKey<ExchangeKey, InstrumentKey>
Trait Implementations§
Source§impl<ExchangeKey: Clone, InstrumentKey: Clone> Clone for OrderKey<ExchangeKey, InstrumentKey>
impl<ExchangeKey: Clone, InstrumentKey: Clone> Clone for OrderKey<ExchangeKey, InstrumentKey>
Source§impl<ExchangeKey: Debug, InstrumentKey: Debug> Debug for OrderKey<ExchangeKey, InstrumentKey>
impl<ExchangeKey: Debug, InstrumentKey: Debug> Debug for OrderKey<ExchangeKey, InstrumentKey>
Source§impl<'de, ExchangeKey, InstrumentKey> Deserialize<'de> for OrderKey<ExchangeKey, InstrumentKey>where
ExchangeKey: Deserialize<'de>,
InstrumentKey: Deserialize<'de>,
impl<'de, ExchangeKey, InstrumentKey> Deserialize<'de> for OrderKey<ExchangeKey, InstrumentKey>where
ExchangeKey: Deserialize<'de>,
InstrumentKey: Deserialize<'de>,
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<ExchangeKey: Ord, InstrumentKey: Ord> Ord for OrderKey<ExchangeKey, InstrumentKey>
impl<ExchangeKey: Ord, InstrumentKey: Ord> Ord for OrderKey<ExchangeKey, InstrumentKey>
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<ExchangeKey: PartialEq, InstrumentKey: PartialEq> PartialEq for OrderKey<ExchangeKey, InstrumentKey>
impl<ExchangeKey: PartialEq, InstrumentKey: PartialEq> PartialEq for OrderKey<ExchangeKey, InstrumentKey>
Source§impl<ExchangeKey: PartialOrd, InstrumentKey: PartialOrd> PartialOrd for OrderKey<ExchangeKey, InstrumentKey>
impl<ExchangeKey: PartialOrd, InstrumentKey: PartialOrd> PartialOrd for OrderKey<ExchangeKey, InstrumentKey>
impl<ExchangeKey: Eq, InstrumentKey: Eq> Eq for OrderKey<ExchangeKey, InstrumentKey>
impl<ExchangeKey, InstrumentKey> StructuralPartialEq for OrderKey<ExchangeKey, InstrumentKey>
Auto Trait Implementations§
impl<ExchangeKey, InstrumentKey> Freeze for OrderKey<ExchangeKey, InstrumentKey>
impl<ExchangeKey, InstrumentKey> RefUnwindSafe for OrderKey<ExchangeKey, InstrumentKey>where
ExchangeKey: RefUnwindSafe,
InstrumentKey: RefUnwindSafe,
impl<ExchangeKey, InstrumentKey> Send for OrderKey<ExchangeKey, InstrumentKey>
impl<ExchangeKey, InstrumentKey> Sync for OrderKey<ExchangeKey, InstrumentKey>
impl<ExchangeKey, InstrumentKey> Unpin for OrderKey<ExchangeKey, InstrumentKey>
impl<ExchangeKey, InstrumentKey> UnwindSafe for OrderKey<ExchangeKey, InstrumentKey>where
ExchangeKey: UnwindSafe,
InstrumentKey: UnwindSafe,
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,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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