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
Implementations
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
sourceimpl PartialEq<Metadata> for Metadata
impl PartialEq<Metadata> for Metadata
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> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more