pub struct CompactScannedFile {
pub relative: Box<str>,
pub bytes: u64,
pub content: Option<Box<CompactContentEvidence>>,
}Expand description
Selected-file evidence without a duplicated absolute path allocation.
Join relative to CompactScanReport::root only when an absolute path
is needed.
Fields§
§relative: Box<str>§bytes: u64§content: Option<Box<CompactContentEvidence>>Allocated only when content inspection was requested.
Implementations§
Source§impl CompactScannedFile
impl CompactScannedFile
Sourcepub fn content_hash(&self) -> Option<&str>
pub fn content_hash(&self) -> Option<&str>
Returns the strong content hash when content hashing was requested.
Trait Implementations§
Source§impl Clone for CompactScannedFile
impl Clone for CompactScannedFile
Source§fn clone(&self) -> CompactScannedFile
fn clone(&self) -> CompactScannedFile
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 CompactScannedFile
impl Debug for CompactScannedFile
impl Eq for CompactScannedFile
Source§impl PartialEq for CompactScannedFile
impl PartialEq for CompactScannedFile
impl StructuralPartialEq for CompactScannedFile
Auto Trait Implementations§
impl Freeze for CompactScannedFile
impl RefUnwindSafe for CompactScannedFile
impl Send for CompactScannedFile
impl Sync for CompactScannedFile
impl Unpin for CompactScannedFile
impl UnsafeUnpin for CompactScannedFile
impl UnwindSafe for CompactScannedFile
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