pub struct HealthGrouping {
pub mode: &'static str,
pub groups: Vec<HealthGroup>,
pub filter: Option<Vec<String>>,
pub unmatched_filters: Vec<String>,
}Expand description
Wrapper carrying the resolver mode label alongside the partitioned groups.
Stored on crate::health::HealthResult when --group-by is active and
consumed by formatters that either render grouped data directly or annotate
per-finding machine output with the group key.
Fields§
§mode: &'static strResolver mode label ("package", "owner", "directory", "section").
groups: Vec<HealthGroup>Groups in the same order the resolver produced them.
filter: Option<Vec<String>>The --group selector patterns, as the user gave them. None when no
selector was given.
unmatched_filters: Vec<String>The positive --group patterns that matched no group key.
Trait Implementations§
Source§impl Clone for HealthGrouping
impl Clone for HealthGrouping
Auto Trait Implementations§
impl Freeze for HealthGrouping
impl RefUnwindSafe for HealthGrouping
impl Send for HealthGrouping
impl Sync for HealthGrouping
impl Unpin for HealthGrouping
impl UnsafeUnpin for HealthGrouping
impl UnwindSafe for HealthGrouping
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