#[non_exhaustive]pub struct MetadataReport {
pub format: Format,
pub findings: Vec<Finding>,
pub notes: Vec<Note>,
}Expand description
The result of inspecting a file. Produced without modifying anything.
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.format: FormatThe format the content was detected as.
findings: Vec<Finding>Everything found, in the order the handler encountered it in the file.
notes: Vec<Note>Caveats about the inspection.
Implementations§
Source§impl MetadataReport
impl MetadataReport
Sourcepub fn has_findings(&self) -> bool
pub fn has_findings(&self) -> bool
Whether anything removable was found.
Drives the documented non-zero exit of strypt show, so it must mean exactly “there
is something here to remove” — never “something might be here”.
Trait Implementations§
Source§impl Clone for MetadataReport
impl Clone for MetadataReport
Source§fn clone(&self) -> MetadataReport
fn clone(&self) -> MetadataReport
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 MetadataReport
impl Debug for MetadataReport
impl Eq for MetadataReport
Source§impl PartialEq for MetadataReport
impl PartialEq for MetadataReport
impl StructuralPartialEq for MetadataReport
Auto Trait Implementations§
impl Freeze for MetadataReport
impl RefUnwindSafe for MetadataReport
impl Send for MetadataReport
impl Sync for MetadataReport
impl Unpin for MetadataReport
impl UnsafeUnpin for MetadataReport
impl UnwindSafe for MetadataReport
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.