pub struct HealthStatus {
pub level: HealthLevel,
pub issues: Vec<String>,
pub warnings: Vec<String>,
}
Expand description
Repository health status
Fields§
§level: HealthLevel
§issues: Vec<String>
§warnings: Vec<String>
Implementations§
Source§impl HealthStatus
impl HealthStatus
Sourcepub fn is_healthy(&self) -> bool
pub fn is_healthy(&self) -> bool
Check if the repository is healthy
Sourcepub fn all_problems(&self) -> Vec<String>
pub fn all_problems(&self) -> Vec<String>
Get all problems (issues + warnings)
Trait Implementations§
Source§impl Clone for HealthStatus
impl Clone for HealthStatus
Source§fn clone(&self) -> HealthStatus
fn clone(&self) -> HealthStatus
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 HealthStatus
impl RefUnwindSafe for HealthStatus
impl Send for HealthStatus
impl Sync for HealthStatus
impl Unpin for HealthStatus
impl UnwindSafe for HealthStatus
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