pub struct GateDecision { /* private fields */ }Expand description
Versioned, auditable result of evaluating a candidate.
Implementations§
Source§impl GateDecision
impl GateDecision
Sourcepub fn outcome(&self) -> GateOutcome
pub fn outcome(&self) -> GateOutcome
Final disposition.
Sourcepub fn baseline(&self) -> Option<&str>
pub fn baseline(&self) -> Option<&str>
Baseline experiment identity, when comparison checks were evaluated.
Sourcepub fn failures(&self) -> impl Iterator<Item = &GateCheck>
pub fn failures(&self) -> impl Iterator<Item = &GateCheck>
Checks that caused the release to be blocked.
Sourcepub fn to_json(&self) -> Result<String>
pub fn to_json(&self) -> Result<String>
Serialize as stable JSON for CI artifacts and audit logs.
Sourcepub fn from_json(
text: &str,
policy: &GatePolicy,
candidate: &ExperimentReport,
baseline: Option<&ExperimentReport>,
) -> Result<Self>
pub fn from_json( text: &str, policy: &GatePolicy, candidate: &ExperimentReport, baseline: Option<&ExperimentReport>, ) -> Result<Self>
Parse a decision artifact with version validation.
Trait Implementations§
Source§impl Clone for GateDecision
impl Clone for GateDecision
Source§fn clone(&self) -> GateDecision
fn clone(&self) -> GateDecision
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 GateDecision
impl Debug for GateDecision
Source§impl PartialEq for GateDecision
impl PartialEq for GateDecision
Source§impl Serialize for GateDecision
impl Serialize for GateDecision
impl StructuralPartialEq for GateDecision
Auto Trait Implementations§
impl Freeze for GateDecision
impl RefUnwindSafe for GateDecision
impl Send for GateDecision
impl Sync for GateDecision
impl Unpin for GateDecision
impl UnsafeUnpin for GateDecision
impl UnwindSafe for GateDecision
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