pub enum JudgeVerdict {
Accepted,
Rejected(String),
Unusable(String),
}Expand description
What a judge concluded about one output.
Variants§
Accepted
{"accept": true, ...} — or there were no judges to ask.
Rejected(String)
{"accept": false, "reason": "..."}.
The reason is retained because it becomes the text a human reads in
cuttlefish escalations, long after the run.
Unusable(String)
The judge’s reply did not parse as a verdict, or its inference errored.
Deliberately not folded into JudgeVerdict::Rejected. “The judge
never returned a usable verdict” and “the judge read this and said no”
call for completely different responses from whoever reads the
escalation — one is a broken grader, the other is broken work — and
collapsing them sends that person hunting for a rejection that never
happened.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for JudgeVerdict
impl RefUnwindSafe for JudgeVerdict
impl Send for JudgeVerdict
impl Sync for JudgeVerdict
impl Unpin for JudgeVerdict
impl UnsafeUnpin for JudgeVerdict
impl UnwindSafe for JudgeVerdict
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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> ⓘ
Converts
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> ⓘ
Converts
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