pub struct OutcomeResult {
pub rec_hash: String,
pub metric: String,
pub baseline: f64,
pub current: f64,
pub verdict: String,
pub horizon_ms: i64,
pub checkpoint: Option<Checkpoint>,
pub measured_at_ms: i64,
}Expand description
A measured outcome for an applied recommendation at one checkpoint — the
Verify gate’s output. held = the metric did not regress at this horizon;
regressed = it got worse (a revert is proposed). A recommendation
accumulates one of these per horizon, forming a time series.
Fields§
§rec_hash: String§metric: String§baseline: f64§current: f64§verdict: String§horizon_ms: i64Which checkpoint this measurement is for (ms after apply). Zero for a
checkpoint counted in runs or grains — see checkpoint.
checkpoint: Option<Checkpoint>The checkpoint in its own unit, when that unit is not time. A time
checkpoint leaves this unset and speaks through horizon_ms, so every
consumer of the older shape reads an unchanged record.
measured_at_ms: i64Trait Implementations§
Source§impl Clone for OutcomeResult
impl Clone for OutcomeResult
Source§fn clone(&self) -> OutcomeResult
fn clone(&self) -> OutcomeResult
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 OutcomeResult
impl Debug for OutcomeResult
Source§impl<'de> Deserialize<'de> for OutcomeResult
impl<'de> Deserialize<'de> for OutcomeResult
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 PartialEq for OutcomeResult
impl PartialEq for OutcomeResult
Source§impl Serialize for OutcomeResult
impl Serialize for OutcomeResult
impl StructuralPartialEq for OutcomeResult
Auto Trait Implementations§
impl Freeze for OutcomeResult
impl RefUnwindSafe for OutcomeResult
impl Send for OutcomeResult
impl Sync for OutcomeResult
impl Unpin for OutcomeResult
impl UnsafeUnpin for OutcomeResult
impl UnwindSafe for OutcomeResult
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