pub struct FileMetadata {
pub created: String,
pub modified: String,
pub accessed: String,
pub is_file_read_only: bool,
pub is_dir: bool,
pub is_file: bool,
pub is_readable: bool,
pub is_writable: bool,
pub is_executable: bool,
/* private fields */
}Fields§
§created: String§modified: String§accessed: String§is_file_read_only: bool§is_dir: bool§is_file: bool§is_readable: bool§is_writable: bool§is_executable: boolImplementations§
Source§impl FileMetadata
impl FileMetadata
pub fn new(path_str: &str) -> Result<Self, String>
pub fn readable(&self) -> bool
pub fn writable(&self) -> bool
pub fn executable(&self) -> bool
pub fn get_file_in_kilobytes(&self) -> f32
pub fn get_file_in_megabytes(&self) -> f32
pub fn get_file_in_gigabytes(&self) -> f32
pub fn get_file_in_terabytes(&self) -> f32
Auto Trait Implementations§
impl Freeze for FileMetadata
impl RefUnwindSafe for FileMetadata
impl Send for FileMetadata
impl Sync for FileMetadata
impl Unpin 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