#[non_exhaustive]pub struct Report {
pub profile: Profile,
pub checks: Vec<Check>,
}Expand description
Every check that applies here, for one profile.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.profile: ProfileThe profile checked.
checks: Vec<Check>The checks, in a fixed order.
Implementations§
Source§impl Report
impl Report
Sourcepub fn write_kv(&self, out: &mut impl Write) -> Result
pub fn write_kv(&self, out: &mut impl Write) -> Result
One key=value line per check: check=linux.thp status=WARN found=always.
§Errors
Whatever out returns.
Sourcepub fn write_json(&self, out: &mut impl Write) -> Result
pub fn write_json(&self, out: &mut impl Write) -> Result
One JSON object: the profile, whether it passed, and every check with its reason and fix.
§Errors
Whatever out returns.
Trait Implementations§
Source§impl Display for Report
A table: status, id, title, found, recommended, and under each check that
did not pass, its fix.
impl Display for Report
A table: status, id, title, found, recommended, and under each check that did not pass, its fix.
impl Eq for Report
impl StructuralPartialEq for Report
Auto Trait Implementations§
impl Forget for Report
impl Freeze for Report
impl RefUnwindSafe for Report
impl Send for Report
impl Sync for Report
impl Unpin for Report
impl UnsafeUnpin for Report
impl UnwindSafe for Report
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