pub struct FileInfo {
pub size: usize,
pub blocks: usize,
pub creation: NaiveDateTime,
pub modified: NaiveDateTime,
pub st_nlink: String,
pub st_ifmt: String,
pub st_link_target: Option<String>,
}Expand description
Information about a file on the device
Fields§
§size: usizeSize of the file in bytes
blocks: usizeNumber of blocks allocated for the file
creation: NaiveDateTimeCreation timestamp of the file
modified: NaiveDateTimeLast modification timestamp of the file
st_nlink: StringNumber of hard links to the file
st_ifmt: StringFile type (e.g., “S_IFREG” for regular file)
st_link_target: Option<String>Target path if this is a symbolic link
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FileInfo
impl RefUnwindSafe for FileInfo
impl Send for FileInfo
impl Sync for FileInfo
impl Unpin for FileInfo
impl UnsafeUnpin for FileInfo
impl UnwindSafe for FileInfo
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