pub struct OutcomeRecord<DateTime, Outcome> {
pub as_of: DateTime,
pub outcome: Outcome,
}
Expand description
A timestamped record of an outcome from batch processing.
This generic structure is used to store results from the solver, such as portfolio allocations or product clearing prices, along with the timestamp of the batch they were computed in.
Fields§
§as_of: DateTime
The timestamp when this outcome was computed
outcome: Outcome
The actual outcome data (e.g., allocation, price)
Auto Trait Implementations§
impl<DateTime, Outcome> Freeze for OutcomeRecord<DateTime, Outcome>
impl<DateTime, Outcome> RefUnwindSafe for OutcomeRecord<DateTime, Outcome>where
DateTime: RefUnwindSafe,
Outcome: RefUnwindSafe,
impl<DateTime, Outcome> Send for OutcomeRecord<DateTime, Outcome>
impl<DateTime, Outcome> Sync for OutcomeRecord<DateTime, Outcome>
impl<DateTime, Outcome> Unpin for OutcomeRecord<DateTime, Outcome>
impl<DateTime, Outcome> UnwindSafe for OutcomeRecord<DateTime, Outcome>where
DateTime: UnwindSafe,
Outcome: 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