pub struct Metadata {
pub ty: FileType,
pub permissions: Option<FilePermissions>,
pub size: Option<u64>,
pub uid: Option<u32>,
pub gid: Option<u32>,
pub accessed: Option<u64>,
pub modified: Option<u64>,
}
Expand description
Represents metadata about a remote file
Fields§
§ty: FileType
Type of the remote file
permissions: Option<FilePermissions>
Permissions associated with the file
size: Option<u64>
File size, in bytes of the file
uid: Option<u32>
Owner ID of the file
gid: Option<u32>
Owning group of the file
accessed: Option<u64>
Last access time of the file
modified: Option<u64>
Last modification time of the file
Implementations§
Trait Implementations§
Source§impl From<FileStat> for Metadata
impl From<FileStat> for Metadata
Source§fn from(stat: Ssh2FileStat) -> Self
fn from(stat: Ssh2FileStat) -> Self
Converts to this type from the input type.
Source§impl Into<SetAttributes> for Metadata
impl Into<SetAttributes> for Metadata
Source§fn into(self) -> SetAttributes
fn into(self) -> SetAttributes
Converts this type into the (usually inferred) input type.
impl Copy for Metadata
impl Eq for Metadata
impl StructuralPartialEq for Metadata
Auto Trait Implementations§
impl Freeze for Metadata
impl RefUnwindSafe for Metadata
impl Send for Metadata
impl Sync for Metadata
impl Unpin for Metadata
impl UnwindSafe for Metadata
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