pub struct DoctorReport {
pub verification: Option<RepositoryVerification>,
pub issues: Vec<DoctorIssue>,
}Expand description
Doctor report.
Fields§
§verification: Option<RepositoryVerification>Repository verification summary, when verification completed.
issues: Vec<DoctorIssue>Diagnostics produced by doctor.
Implementations§
Source§impl DoctorReport
impl DoctorReport
Sourcepub fn is_healthy(&self) -> bool
pub fn is_healthy(&self) -> bool
Return true if no error-severity issue was found.
Sourcepub fn count_by_severity(&self, severity: DoctorSeverity) -> usize
pub fn count_by_severity(&self, severity: DoctorSeverity) -> usize
Count issues with a given severity.
Trait Implementations§
Source§impl Clone for DoctorReport
impl Clone for DoctorReport
Source§fn clone(&self) -> DoctorReport
fn clone(&self) -> DoctorReport
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DoctorReport
impl Debug for DoctorReport
impl Eq for DoctorReport
Source§impl PartialEq for DoctorReport
impl PartialEq for DoctorReport
impl StructuralPartialEq for DoctorReport
Auto Trait Implementations§
impl Freeze for DoctorReport
impl RefUnwindSafe for DoctorReport
impl Send for DoctorReport
impl Sync for DoctorReport
impl Unpin for DoctorReport
impl UnsafeUnpin for DoctorReport
impl UnwindSafe for DoctorReport
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