pub struct PathInfo {
pub size: usize,
pub hash: Option<String>,
pub path: PathBuf,
pub num_file: usize,
pub sum_size: usize,
}
Expand description
File Information including path
rust_xlsxwriter: Working with Serde
https://docs.rs/rust_xlsxwriter/latest/rust_xlsxwriter/serializer/index.html
Fields§
§size: usize
File size (in bytes)
hash: Option<String>
Hash
path: PathBuf
File Paths
num_file: usize
Number of duplicate files with the same size and blake3 hash
sum_size: usize
Sum of individual file sizes declared in paths
Trait Implementations§
Source§impl XlsxSerialize for PathInfo
impl XlsxSerialize for PathInfo
Source§fn to_serialize_field_options() -> SerializeFieldOptions
fn to_serialize_field_options() -> SerializeFieldOptions
Map
#[xlsx()]
attributes to SerializeFieldOptions
.Auto Trait Implementations§
impl Freeze for PathInfo
impl RefUnwindSafe for PathInfo
impl Send for PathInfo
impl Sync for PathInfo
impl Unpin for PathInfo
impl UnwindSafe for PathInfo
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> 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