Enum fs_extra::dir::DirEntryAttr
source · [−]pub enum DirEntryAttr {
Show 13 variants
Name,
Ext,
FullName,
Path,
DosPath,
FileSize,
Size,
IsDir,
IsFile,
Modified,
Accessed,
Created,
BaseInfo,
}
Expand description
Available attributes for get information about directory entry.
Variants
Name
Folder name or file name without extension.
Ext
File extension.
FullName
Folder name or file name with extention.
Path
Path to file or directory.
DosPath
Dos path to file or directory.
FileSize
File size in bytes.
Size
Size file or directory in bytes.
Attention!
: This operation very expensive and sometimes required additional rights.
IsDir
Return whether entry is directory or not.
IsFile
Return whether entry is file or not.
Modified
Last modification time for directory entry.
Accessed
Last access time for directory entry.
Created
Created time for directory entry.
Attention!
: Not supported UNIX platform.
BaseInfo
Return or not return base information target folder.
Trait Implementations
sourceimpl Clone for DirEntryAttr
impl Clone for DirEntryAttr
sourcefn clone(&self) -> DirEntryAttr
fn clone(&self) -> DirEntryAttr
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Hash for DirEntryAttr
impl Hash for DirEntryAttr
sourceimpl PartialEq<DirEntryAttr> for DirEntryAttr
impl PartialEq<DirEntryAttr> for DirEntryAttr
impl Eq for DirEntryAttr
impl StructuralEq for DirEntryAttr
impl StructuralPartialEq for DirEntryAttr
Auto Trait Implementations
impl RefUnwindSafe for DirEntryAttr
impl Send for DirEntryAttr
impl Sync for DirEntryAttr
impl Unpin for DirEntryAttr
impl UnwindSafe for DirEntryAttr
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more