#[non_exhaustive]pub struct FileInfo {
pub is_file: bool,
pub is_directory: bool,
pub size: i64,
pub mtime: String,
pub birthtime: String,
}Expand description
File or directory metadata returned by SessionFsProvider::stat.
The SDK adapts this into the wire’s SessionFsStatResult.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.is_file: boolWhether the path is a regular file.
is_directory: boolWhether the path is a directory.
size: i64File size in bytes.
mtime: StringISO 8601 timestamp of last modification.
birthtime: StringISO 8601 timestamp of creation.
Implementations§
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