pub struct DirectoryEntry {
pub name: String,
pub path: String,
pub is_directory: bool,
pub size_bytes: u64,
pub mime_type: Option<String>,
pub modified_at: i64,
pub created_at: i64,
pub checksum: Option<String>,
pub sync_state: SyncState,
}Expand description
Entry in a directory listing.
Fields§
§name: StringFile or directory name.
path: StringFull path within the disk.
is_directory: boolWhether this entry is a directory.
size_bytes: u64Size in bytes (0 for directories).
mime_type: Option<String>MIME type (None for directories).
modified_at: i64Unix timestamp (ms) of last modification.
created_at: i64Unix timestamp (ms) of creation.
checksum: Option<String>BLAKE3 checksum (None for directories).
sync_state: SyncStateSync state of this entry.
Trait Implementations§
Source§impl Clone for DirectoryEntry
impl Clone for DirectoryEntry
Source§fn clone(&self) -> DirectoryEntry
fn clone(&self) -> DirectoryEntry
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 DirectoryEntry
impl Debug for DirectoryEntry
Source§impl<'de> Deserialize<'de> for DirectoryEntry
impl<'de> Deserialize<'de> for DirectoryEntry
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
Source§impl PartialEq for DirectoryEntry
impl PartialEq for DirectoryEntry
Source§impl Serialize for DirectoryEntry
impl Serialize for DirectoryEntry
impl Eq for DirectoryEntry
impl StructuralPartialEq for DirectoryEntry
Auto Trait Implementations§
impl Freeze for DirectoryEntry
impl RefUnwindSafe for DirectoryEntry
impl Send for DirectoryEntry
impl Sync for DirectoryEntry
impl Unpin for DirectoryEntry
impl UnsafeUnpin for DirectoryEntry
impl UnwindSafe for DirectoryEntry
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