pub struct FileSystemStatDTO {
pub FileType: u8,
pub CreationTime: u64,
pub ModificationTime: u64,
pub Size: u64,
pub Permissions: Option<u32>,
}Expand description
A serializable struct that represents metadata for a filesystem entry.
This DTO is returned by the StatFile effect and is analogous to VS Code’s
FileStat interface, providing essential information like file type, size,
and modification times.
Fields§
§FileType: u8A bitmask representing the type of the file. @see FileTypeDTO
CreationTime: u64The creation time of the file in milliseconds since the UNIX epoch.
ModificationTime: u64The last modification time of the file in milliseconds since the UNIX epoch.
Size: u64The size of the file in bytes.
Permissions: Option<u32>An optional bitmask representing the file’s permissions. This is platform-specific and may not always be available.
Trait Implementations§
Source§impl Clone for FileSystemStatDTO
impl Clone for FileSystemStatDTO
Source§fn clone(&self) -> FileSystemStatDTO
fn clone(&self) -> FileSystemStatDTO
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 moreSource§impl Debug for FileSystemStatDTO
impl Debug for FileSystemStatDTO
Source§impl<'de> Deserialize<'de> for FileSystemStatDTO
impl<'de> Deserialize<'de> for FileSystemStatDTO
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for FileSystemStatDTO
impl RefUnwindSafe for FileSystemStatDTO
impl Send for FileSystemStatDTO
impl Sync for FileSystemStatDTO
impl Unpin for FileSystemStatDTO
impl UnwindSafe for FileSystemStatDTO
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