pub struct ShredReport {
pub generated_at: DateTime<Utc>,
pub total_files: usize,
pub success_count: usize,
pub failure_count: usize,
pub events: Vec<ShredEvent>,
}Expand description
A comprehensive report of a shredding session.
Fields§
§generated_at: DateTime<Utc>Timestamp of when the report was generated.
total_files: usizeTotal number of files targeted in this session.
success_count: usizeNumber of successful destructions.
failure_count: usizeNumber of failed destructions.
events: Vec<ShredEvent>Individual event logs.
Implementations§
Source§impl ShredReport
impl ShredReport
Sourcepub fn new(events: Vec<ShredEvent>) -> Self
pub fn new(events: Vec<ShredEvent>) -> Self
Creates a new ShredReport from a collection of events.
Trait Implementations§
Source§impl Clone for ShredReport
impl Clone for ShredReport
Source§fn clone(&self) -> ShredReport
fn clone(&self) -> ShredReport
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 ShredReport
impl Debug for ShredReport
Auto Trait Implementations§
impl Freeze for ShredReport
impl RefUnwindSafe for ShredReport
impl Send for ShredReport
impl Sync for ShredReport
impl Unpin for ShredReport
impl UnsafeUnpin for ShredReport
impl UnwindSafe for ShredReport
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more