Struct distant_core::data::Metadata [−][src]
pub struct Metadata {
pub canonicalized_path: Option<PathBuf>,
pub file_type: FileType,
pub len: u64,
pub readonly: bool,
pub accessed: Option<u128>,
pub created: Option<u128>,
pub modified: Option<u128>,
}Expand description
Represents metadata about some path on a remote machine
Fields
canonicalized_path: Option<PathBuf>Canonicalized path to the file or directory, resolving symlinks, only included if flagged during the request
file_type: FileTypeRepresents the type of the entry as a file/dir/symlink
len: u64Size of the file/directory/symlink in bytes
readonly: boolWhether or not the file/directory/symlink is marked as unwriteable
accessed: Option<u128>Represents the last time (in milliseconds) when the file/directory/symlink was accessed; can be optional as certain systems don’t support this
created: Option<u128>Represents when (in milliseconds) the file/directory/symlink was created; can be optional as certain systems don’t support this
modified: Option<u128>Represents the last time (in milliseconds) when the file/directory/symlink was modified; can be optional as certain systems don’t support this
Trait Implementations
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 RefUnwindSafe for Metadata
impl UnwindSafe for Metadata
Blanket Implementations
Mutably borrows from an owned value. Read more