pub struct FileEntry {
pub path: PathBuf,
pub mode: FileMode,
pub ownership: FileOwnership,
pub modified_at: DateTime<Utc>,
pub size: usize,
pub category: FileCategory,
pub digest: Option<FileDigest>,
}Expand description
User facing accessor type for a file entry with contextual information
Fields§
§path: PathBufFull path of the file entry and where it will be installed to.
mode: FileModeThe file mode of the file.
ownership: FileOwnershipDefines the owning user and group.
modified_at: DateTime<Utc>Clocks the last access time.
size: usizeThe size of this file, dirs have the inode size (which is insane)
category: FileCategoryCategorizes the file or directory into three groups.
digest: Option<FileDigest>Trait Implementations§
impl Eq for FileEntry
impl StructuralPartialEq for FileEntry
Auto Trait Implementations§
impl Freeze for FileEntry
impl RefUnwindSafe for FileEntry
impl Send for FileEntry
impl Sync for FileEntry
impl Unpin for FileEntry
impl UnwindSafe for FileEntry
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