pub struct GateEvaluation {
pub policy: String,
pub dataset_version: String,
pub outcome: GateVerdict,
pub checks: Vec<GateCheckRecord>,
}Expand description
The gate evaluation the RevisionGateEvaluator seam returns: the
verdict and every check behind it, naming the policy and dataset
version it ran under. The seam’s contract requires the evaluator to
name back the declaration it was handed — an evaluation that cannot
say what it evaluated is not evidence about this promotion.
Fields§
§policy: StringThe policy the evaluation ran (must equal the declaration’s).
dataset_version: StringThe dataset version the evaluation replayed (must equal the declaration’s).
outcome: GateVerdictThe verdict.
checks: Vec<GateCheckRecord>Every check the verdict stands on.
Implementations§
Trait Implementations§
Source§impl Clone for GateEvaluation
impl Clone for GateEvaluation
Source§impl Debug for GateEvaluation
impl Debug for GateEvaluation
Source§impl<'de> Deserialize<'de> for GateEvaluation
impl<'de> Deserialize<'de> for GateEvaluation
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 GateEvaluation
impl PartialEq for GateEvaluation
Source§impl Serialize for GateEvaluation
impl Serialize for GateEvaluation
impl StructuralPartialEq for GateEvaluation
Auto Trait Implementations§
impl Freeze for GateEvaluation
impl RefUnwindSafe for GateEvaluation
impl Send for GateEvaluation
impl Sync for GateEvaluation
impl Unpin for GateEvaluation
impl UnsafeUnpin for GateEvaluation
impl UnwindSafe for GateEvaluation
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