pub enum FillAdjustmentResult {
NoAdjustment,
AddSyntheticOpening {
synthetic_fill: FillSnapshot,
existing_fills: Vec<FillSnapshot>,
},
ReplaceCurrentLifecycle {
synthetic_fill: FillSnapshot,
first_venue_order_id: VenueOrderId,
},
FilterToCurrentLifecycle {
last_zero_crossing_ts: u64,
current_lifecycle_fills: Vec<FillSnapshot>,
},
}Expand description
Result of the fill adjustment process.
Variants§
NoAdjustment
No adjustment needed - return fills unchanged.
AddSyntheticOpening
Add synthetic opening fill to oldest lifecycle.
Fields
§
synthetic_fill: FillSnapshotThe synthetic fill to add at the beginning.
§
existing_fills: Vec<FillSnapshot>All existing fills to keep.
ReplaceCurrentLifecycle
Replace entire current lifecycle with single synthetic fill.
Fields
§
synthetic_fill: FillSnapshotThe single synthetic fill representing the entire position.
§
first_venue_order_id: VenueOrderIdThe first venue order ID to use.
FilterToCurrentLifecycle
Filter fills to current lifecycle only (after last zero-crossing).
Fields
§
current_lifecycle_fills: Vec<FillSnapshot>Fills from current lifecycle.
Trait Implementations§
Source§impl Clone for FillAdjustmentResult
impl Clone for FillAdjustmentResult
Source§fn clone(&self) -> FillAdjustmentResult
fn clone(&self) -> FillAdjustmentResult
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 FillAdjustmentResult
impl Debug for FillAdjustmentResult
Source§impl PartialEq for FillAdjustmentResult
impl PartialEq for FillAdjustmentResult
impl StructuralPartialEq for FillAdjustmentResult
Auto Trait Implementations§
impl Freeze for FillAdjustmentResult
impl RefUnwindSafe for FillAdjustmentResult
impl Send for FillAdjustmentResult
impl Sync for FillAdjustmentResult
impl Unpin for FillAdjustmentResult
impl UnwindSafe for FillAdjustmentResult
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<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