pub enum EvalReportError {
Malformed(Error),
AccuracyOutOfRange {
accuracy: f64,
},
}Expand description
A course’s bundled eval report could not be read as the Slice-13 JSON artifact.
Distinct from an absent report (which the CLI shell maps to
EvalSummary::NotValidated before parsing): a report that is present but
unreadable fails the build loudly rather than silently dropping to
not-validated, so a corrupt artifact can never quietly unvalidate a course.
Variants§
Malformed(Error)
The report is not valid JSON, or lacks the expected accuracy shape.
AccuracyOutOfRange
The report parsed but its accuracy lies outside the representable
[0.0, 1.0] (§1.3.1): a hand-edited or corrupt figure that would otherwise
render nonsense like 200%. Rejected at the read boundary, not carried.
Trait Implementations§
Source§impl Debug for EvalReportError
impl Debug for EvalReportError
Source§impl Display for EvalReportError
impl Display for EvalReportError
Source§impl Error for EvalReportError
impl Error for EvalReportError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for EvalReportError
impl !RefUnwindSafe for EvalReportError
impl Send for EvalReportError
impl Sync for EvalReportError
impl Unpin for EvalReportError
impl !UnwindSafe for EvalReportError
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