pub struct FileAttributes {
pub size: u64,
pub is_directory: bool,
pub is_hidden: bool,
pub is_readonly: bool,
pub creation_time: Option<u64>,
pub modification_time: Option<u64>,
}Expand description
File attributes structure
Fields§
§size: u64File size in bytes
is_directory: boolWhether the file is a directory
Whether the file is hidden
is_readonly: boolWhether the file is read-only
creation_time: Option<u64>Creation timestamp (if available)
modification_time: Option<u64>Last modification timestamp (if available)
Trait Implementations§
Source§impl Clone for FileAttributes
impl Clone for FileAttributes
Source§fn clone(&self) -> FileAttributes
fn clone(&self) -> FileAttributes
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 FileAttributes
impl RefUnwindSafe for FileAttributes
impl Send for FileAttributes
impl Sync for FileAttributes
impl Unpin for FileAttributes
impl UnwindSafe for FileAttributes
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