pub struct LossObservation {
pub ts_unix_ms: u128,
pub action: DecisionAction,
pub was_incompatible: bool,
pub realized_loss: f64,
pub loss_category: LossCategory,
}Expand description
A single observed loss from a decision outcome.
Fields§
§ts_unix_ms: u128Unix timestamp in milliseconds when the observation was recorded.
action: DecisionActionThe decision action that was taken.
was_incompatible: boolTrue state: was the operation actually incompatible?
realized_loss: f64Realized loss from this decision.
loss_category: LossCategoryWhich loss category this contributes to.
Trait Implementations§
Source§impl Clone for LossObservation
impl Clone for LossObservation
Source§fn clone(&self) -> LossObservation
fn clone(&self) -> LossObservation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 LossObservation
impl Debug for LossObservation
Source§impl PartialEq for LossObservation
impl PartialEq for LossObservation
Source§fn eq(&self, other: &LossObservation) -> bool
fn eq(&self, other: &LossObservation) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for LossObservation
Auto Trait Implementations§
impl Freeze for LossObservation
impl RefUnwindSafe for LossObservation
impl Send for LossObservation
impl Sync for LossObservation
impl Unpin for LossObservation
impl UnsafeUnpin for LossObservation
impl UnwindSafe for LossObservation
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