Struct distant_core::data::Metadata
source · [−]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>,
pub unix: Option<UnixMetadata>,
pub windows: Option<WindowsMetadata>,
}
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: FileType
Represents the type of the entry as a file/dir/symlink
len: u64
Size of the file/directory/symlink in bytes
readonly: bool
Whether 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
unix: Option<UnixMetadata>
Represents metadata that is specific to a unix remote machine
windows: Option<WindowsMetadata>
Represents metadata that is specific to a windows remote machine
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Metadata
impl<'de> Deserialize<'de> for Metadata
sourcefn 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
impl Eq for Metadata
impl StructuralEq for Metadata
impl StructuralPartialEq for Metadata
Auto Trait Implementations
impl RefUnwindSafe for Metadata
impl Send for Metadata
impl Sync for Metadata
impl Unpin for Metadata
impl UnwindSafe for Metadata
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more