pub struct DiagnosticReport {
pub spec_id: String,
pub status: SpecStatus,
pub checks: Vec<CheckResult>,
pub diagnosis: String,
pub suggestion: Option<String>,
pub location: String,
}Expand description
Full diagnostic report for a spec.
Fields§
§spec_id: String§status: SpecStatus§checks: Vec<CheckResult>§diagnosis: String§suggestion: Option<String>§location: StringImplementations§
Source§impl DiagnosticReport
impl DiagnosticReport
Sourcepub fn all_passed(&self) -> bool
pub fn all_passed(&self) -> bool
Returns true if all diagnostic checks passed. Used in tests.
Sourcepub fn failed_checks(&self) -> Vec<&CheckResult>
pub fn failed_checks(&self) -> Vec<&CheckResult>
Returns the list of failed checks. Used in tests.
Trait Implementations§
Source§impl Clone for DiagnosticReport
impl Clone for DiagnosticReport
Source§fn clone(&self) -> DiagnosticReport
fn clone(&self) -> DiagnosticReport
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for DiagnosticReport
impl RefUnwindSafe for DiagnosticReport
impl Send for DiagnosticReport
impl Sync for DiagnosticReport
impl Unpin for DiagnosticReport
impl UnwindSafe for DiagnosticReport
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