#[non_exhaustive]pub struct RunnerProvenance {
pub path: String,
pub revision: String,
pub dirty: bool,
}Expand description
Which bake-off runner produced the level, and at what revision.
Why: #5441’s preflight must reject “stale runner paths”. A path alone
cannot establish that: the same path holds a different runner after a pull.
Recording path, revision, and whether that checkout was dirty makes the
claim checkable — a dirty runner checkout means the recorded revision does
not identify what actually ran, which is precisely how the first
qualification attempt’s evidence was disqualified.
What: plain strings plus a dirty flag; no path is resolved or touched by
this crate, which never runs the runner.
Test: bakeoff::tests::dirty_runner_checkout_is_rejected.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.path: StringAbsolute path to the runner script that produced this level.
revision: StringThe runner checkout’s commit (or tag) at invocation time.
dirty: boolWhether that checkout had uncommitted changes.
Trait Implementations§
Source§impl Clone for RunnerProvenance
impl Clone for RunnerProvenance
Source§impl Debug for RunnerProvenance
impl Debug for RunnerProvenance
Source§impl<'de> Deserialize<'de> for RunnerProvenance
impl<'de> Deserialize<'de> for RunnerProvenance
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 RunnerProvenance
Source§impl PartialEq for RunnerProvenance
impl PartialEq for RunnerProvenance
Source§impl Serialize for RunnerProvenance
impl Serialize for RunnerProvenance
impl StructuralPartialEq for RunnerProvenance
Auto Trait Implementations§
impl Freeze for RunnerProvenance
impl RefUnwindSafe for RunnerProvenance
impl Send for RunnerProvenance
impl Sync for RunnerProvenance
impl Unpin for RunnerProvenance
impl UnsafeUnpin for RunnerProvenance
impl UnwindSafe for RunnerProvenance
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