pub struct FileComparisonResult {
pub relative_path: PathBuf,
pub classification: Classification,
pub modified_time_comparison: Option<Comparison>,
pub size_comparison: Option<Comparison>,
pub is_content_same: Option<bool>,
}Expand description
Detailed result of comparing a single file.
Fields§
§relative_path: PathBufThe path relative to the root of the directories.
classification: ClassificationWhether the file exists in one or both directories.
modified_time_comparison: Option<Comparison>Comparison of the last modified time, if applicable.
size_comparison: Option<Comparison>Comparison of the file size, if applicable.
is_content_same: Option<bool>Whether the content is byte-for-byte identical, if applicable.
Implementations§
Trait Implementations§
Source§impl Clone for FileComparisonResult
impl Clone for FileComparisonResult
Source§fn clone(&self) -> FileComparisonResult
fn clone(&self) -> FileComparisonResult
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 moreAuto Trait Implementations§
impl Freeze for FileComparisonResult
impl RefUnwindSafe for FileComparisonResult
impl Send for FileComparisonResult
impl Sync for FileComparisonResult
impl Unpin for FileComparisonResult
impl UnsafeUnpin for FileComparisonResult
impl UnwindSafe for FileComparisonResult
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> 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