#[non_exhaustive]pub struct GuardrailAnalysis {Show 13 fields
pub metric: String,
pub kind: MetricKind,
pub direction: MetricDirection,
pub tolerance: Tolerance,
pub control_units: u64,
pub variant_units: u64,
pub ready: bool,
pub effect: EffectEstimate,
pub harm: f64,
pub harm_lower_bound: Option<f64>,
pub p_value: f64,
pub alpha: f64,
pub breached: bool,
}Expand description
The analysis of one guardrail at one look (spec 3.5 §7.12, A-I15).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.metric: StringThe metric’s id.
kind: MetricKindHow the metric is measured.
direction: MetricDirectionWhich way the metric improves.
tolerance: ToleranceHow much worse than the control the variant may be.
control_units: u64Units in the control.
variant_units: u64Units in the variant.
ready: boolWhether both arms reached the minimum units, so the guardrail may be breached.
effect: EffectEstimateThe variant’s effect, with intervals at the guardrail’s budget.
harm: f64The estimated harm beyond the tolerance, in the metric’s units; positive means worse than tolerated.
harm_lower_bound: Option<f64>The always-valid lower confidence bound of the harm; None until ready.
p_value: f64The always-valid one-sided p-value of “harm within tolerance”: the running minimum.
alpha: f64This guardrail’s share of the guardrail error budget.
breached: boolWhether the guardrail is breached.
Trait Implementations§
Source§impl Clone for GuardrailAnalysis
impl Clone for GuardrailAnalysis
Source§impl Debug for GuardrailAnalysis
impl Debug for GuardrailAnalysis
Source§impl<'de> Deserialize<'de> for GuardrailAnalysis
impl<'de> Deserialize<'de> for GuardrailAnalysis
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 GuardrailAnalysis
impl PartialEq for GuardrailAnalysis
Source§impl Serialize for GuardrailAnalysis
impl Serialize for GuardrailAnalysis
impl StructuralPartialEq for GuardrailAnalysis
Auto Trait Implementations§
impl Forget for GuardrailAnalysis
impl Freeze for GuardrailAnalysis
impl Move for GuardrailAnalysis
impl RefUnwindSafe for GuardrailAnalysis
impl Send for GuardrailAnalysiswhere
RawVecInner: Send,
impl Sync for GuardrailAnalysiswhere
RawVecInner: Sync,
impl Unpin for GuardrailAnalysis
impl UnsafeUnpin for GuardrailAnalysis
impl UnwindSafe for GuardrailAnalysiswhere
RawVecInner: 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