pub struct ContentReport {
pub checks: Vec<ContentCheck>,
}Expand description
Aggregate result for opt-in content checks.
Fields§
§checks: Vec<ContentCheck>Individual content checks in execution order.
Implementations§
Source§impl ContentReport
impl ContentReport
Sourcepub fn findings(&self) -> impl Iterator<Item = &Finding>
pub fn findings(&self) -> impl Iterator<Item = &Finding>
Returns every fatal finding raised by the report’s checks.
Sourcepub fn warnings(&self) -> impl Iterator<Item = &Advisory>
pub fn warnings(&self) -> impl Iterator<Item = &Advisory>
Returns every non-fatal advisory raised by the report’s checks.
Sourcepub fn with_outcome(
&self,
outcome: Outcome,
) -> impl Iterator<Item = &ContentCheck>
pub fn with_outcome( &self, outcome: Outcome, ) -> impl Iterator<Item = &ContentCheck>
Returns checks whose outcome equals outcome.
Trait Implementations§
Source§impl Clone for ContentReport
impl Clone for ContentReport
Source§impl Debug for ContentReport
impl Debug for ContentReport
Source§impl Default for ContentReport
impl Default for ContentReport
Auto Trait Implementations§
impl Freeze for ContentReport
impl RefUnwindSafe for ContentReport
impl Send for ContentReport
impl Sync for ContentReport
impl Unpin for ContentReport
impl UnsafeUnpin for ContentReport
impl UnwindSafe for ContentReport
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