pub struct FileInfo {
pub name: String,
pub size: u64,
pub entry_type: FileEntryType,
pub created: Option<u64>,
pub modified: Option<u64>,
pub versions: Option<Vec<FileVersion>>,
}Expand description
Information about a file or directory entry.
Fields§
§name: StringEntry name (filename or directory name).
size: u64Size in bytes. For versioned files, this is the size of the latest version. For directories, this is 0.
entry_type: FileEntryTypeType of this entry.
created: Option<u64>Creation timestamp as Unix epoch seconds. For versioned files, this is when the first version was created.
modified: Option<u64>Last modified timestamp as Unix epoch seconds. For versioned files, this is when the latest version was created.
versions: Option<Vec<FileVersion>>List of all versions, sorted newest first. Only populated for versioned files.
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 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