#[non_exhaustive]pub enum EvidenceMode {
Real,
Mock,
Unknown,
}Expand description
Whether a level’s artifacts came from a real model run or a plumbing-only mock.
Why: #5441 permits offline/mock runs to validate plumbing but states they
“do not satisfy the exit gate”. A boolean would let an absent field default
to the permissive value; an explicit enum with a catch-all makes an
unrecognised or missing declaration fail closed.
What: real and mock deserialize from those literals; anything else
(including a typo or a future variant) becomes Unknown, which
EvidenceMode::is_real reports as not-real.
Test: bakeoff::tests::unknown_evidence_mode_is_not_real.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Real
A real model/provider run against the pinned candidate build.
Mock
A mocked or offline run — plumbing validation only.
Unknown
Any value this build does not recognise.
Implementations§
Source§impl EvidenceMode
impl EvidenceMode
Sourcepub fn is_real(self) -> bool
pub fn is_real(self) -> bool
Whether this evidence can satisfy the milestone exit gate.
Why: single decision point so the preflight never re-spells the
“mock does not count” rule.
What: true only for EvidenceMode::Real.
Test: bakeoff::tests::unknown_evidence_mode_is_not_real.
Trait Implementations§
Source§impl Clone for EvidenceMode
impl Clone for EvidenceMode
impl Copy for EvidenceMode
Source§impl Debug for EvidenceMode
impl Debug for EvidenceMode
Source§impl<'de> Deserialize<'de> for EvidenceMode
impl<'de> Deserialize<'de> for EvidenceMode
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>,
impl Eq for EvidenceMode
Source§impl PartialEq for EvidenceMode
impl PartialEq for EvidenceMode
Source§impl Serialize for EvidenceMode
impl Serialize for EvidenceMode
impl StructuralPartialEq for EvidenceMode
Auto Trait Implementations§
impl Freeze for EvidenceMode
impl RefUnwindSafe for EvidenceMode
impl Send for EvidenceMode
impl Sync for EvidenceMode
impl Unpin for EvidenceMode
impl UnsafeUnpin for EvidenceMode
impl UnwindSafe for EvidenceMode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more