pub struct FileRecord {
pub path: String,
pub detected: Option<&'static str>,
pub action: &'static str,
pub bytes_before: Option<u64>,
pub bytes_after: Option<u64>,
pub duration_us: u64,
pub error: Option<String>,
}Expand description
A single processed file in the report.
Fields§
§path: String§detected: Option<&'static str>Detection tag (utf-8, gb18030, …); None when unreadable.
action: &'static strwould_convert | converted | unchanged | skipped_unknown |
skipped_too_large | error | detected | passed | failed.
bytes_before: Option<u64>§bytes_after: Option<u64>§duration_us: u64§error: Option<String>Implementations§
Source§impl FileRecord
impl FileRecord
Sourcepub fn new(path: &Path) -> FileRecord
pub fn new(path: &Path) -> FileRecord
Start a record for path; remaining fields are filled by the
per-file processors.
Trait Implementations§
Source§impl Clone for FileRecord
impl Clone for FileRecord
Source§impl Debug for FileRecord
impl Debug for FileRecord
Auto Trait Implementations§
impl Freeze for FileRecord
impl RefUnwindSafe for FileRecord
impl Send for FileRecord
impl Sync for FileRecord
impl Unpin for FileRecord
impl UnsafeUnpin for FileRecord
impl UnwindSafe for FileRecord
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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