pub struct SkippedHistoryRow {
pub order_id: Option<String>,
pub tradeable: Option<String>,
pub event_ms: i64,
pub undocumented: bool,
}Expand description
An order history row the projection could not represent, with what could be read of it.
Fields§
§order_id: Option<String>§tradeable: Option<String>§event_ms: i64When the event happened, in milliseconds. A stamp before the epoch places the row nowhere, so it reads as newer than any state.
undocumented: boolThe row is of a kind the documentation does not list, so the order and contract read from it are a guess at its shape: they can withhold an order but rule nothing out.
Implementations§
Source§impl SkippedHistoryRow
impl SkippedHistoryRow
Sourcepub fn may_supersede(&self, order_id: &str, state_ms: i64) -> bool
pub fn may_supersede(&self, order_id: &str, state_ms: i64) -> bool
Whether this row may be a state of order_id that the state at state_ms does not
supersede. A row that names no order may be any order’s, as may an undocumented kind.
Trait Implementations§
Source§impl Clone for SkippedHistoryRow
impl Clone for SkippedHistoryRow
Source§impl Debug for SkippedHistoryRow
impl Debug for SkippedHistoryRow
impl Eq for SkippedHistoryRow
Source§impl PartialEq for SkippedHistoryRow
impl PartialEq for SkippedHistoryRow
impl StructuralPartialEq for SkippedHistoryRow
Auto Trait Implementations§
impl Freeze for SkippedHistoryRow
impl RefUnwindSafe for SkippedHistoryRow
impl Send for SkippedHistoryRow
impl Sync for SkippedHistoryRow
impl Unpin for SkippedHistoryRow
impl UnsafeUnpin for SkippedHistoryRow
impl UnwindSafe for SkippedHistoryRow
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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<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
Checks if this value is equivalent to the given key. Read more
§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
Checks if this value is equivalent to the given key. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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