pub struct Judgement {
pub verdict: Verdict,
pub also: Vec<Digest>,
}Expand description
What a checker decided, before it becomes signed Evidence.
Carries the verdict and, optionally, further digests the checker looked at.
It does not carry the work order or the condensate digests — those are
added by Checker::check, so that a checker cannot produce a verdict that
fails to name what it judged.
Fields§
§verdict: VerdictThe outcome.
also: Vec<Digest>Anything else this verdict speaks about: a schema, a raw patch fetched from the content store, a tool manifest.
Implementations§
Source§impl Judgement
impl Judgement
Sourcepub fn fail(reason: impl Into<String>) -> Self
pub fn fail(reason: impl Into<String>) -> Self
The check failed, with a reason a repair loop can act on.
The reason is read by a model on the next attempt, so it should say what was wrong and where, not merely that something was.
Sourcepub fn inconclusive(reason: impl Into<String>) -> Self
pub fn inconclusive(reason: impl Into<String>) -> Self
The check could not reach a conclusion.
A timeout, a tool that crashed, an input this checker does not handle.
Never commits — see Verdict.
Trait Implementations§
impl Eq for Judgement
impl StructuralPartialEq for Judgement
Auto Trait Implementations§
impl Freeze for Judgement
impl RefUnwindSafe for Judgement
impl Send for Judgement
impl Sync for Judgement
impl Unpin for Judgement
impl UnsafeUnpin for Judgement
impl UnwindSafe for Judgement
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