pub struct FileResult {
pub index: usize,
pub path: PathBuf,
pub file_type: DetectedFileType,
pub skipped: bool,
pub errors: Vec<FileError>,
pub ops_completed: usize,
pub operations: HashMap<String, Value>,
}Expand description
Result of processing one file.
Fields§
§index: usize1-based index in the discovered file list
path: PathBufAbsolute path to the file
file_type: DetectedFileTypeDetected file type
skipped: boolTrue if this file was skipped (type not accepted by any requested op)
errors: Vec<FileError>Accumulated errors from all operations
ops_completed: usizeNumber of operations that completed without error
operations: HashMap<String, Value>Per-operation JSON-serialisable results (keyed by operation name)
Trait Implementations§
Source§impl Clone for FileResult
impl Clone for FileResult
Source§fn clone(&self) -> FileResult
fn clone(&self) -> FileResult
Returns a duplicate of the value. Read more
1.0.0 · 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 FileResult
impl Debug for FileResult
Auto Trait Implementations§
impl Freeze for FileResult
impl RefUnwindSafe for FileResult
impl Send for FileResult
impl Sync for FileResult
impl Unpin for FileResult
impl UnsafeUnpin for FileResult
impl UnwindSafe for FileResult
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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> 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