pub struct FileMetadata {
pub path: String,
pub size: u64,
pub is_dir: bool,
pub is_file: bool,
pub read_only: bool,
}Expand description
Simulated file metadata.
Fields§
§path: StringFile path.
size: u64Size in bytes.
is_dir: boolWhether this is a directory.
is_file: boolWhether this is a regular file.
read_only: boolWhether the file is read-only.
Implementations§
Source§impl FileMetadata
impl FileMetadata
Trait Implementations§
Source§impl Clone for FileMetadata
impl Clone for FileMetadata
Source§fn clone(&self) -> FileMetadata
fn clone(&self) -> FileMetadata
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 FileMetadata
impl RefUnwindSafe for FileMetadata
impl Send for FileMetadata
impl Sync for FileMetadata
impl Unpin for FileMetadata
impl UnsafeUnpin for FileMetadata
impl UnwindSafe for FileMetadata
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