pub struct Attrs {
pub size: Option<u64>,
pub owner: Option<Owner>,
pub perms: Option<Permisions>,
pub time: Option<Time>,
}Expand description
Attributes of a file or a directory.
The same encoding is used both when returning file attributes from the server and when sending file attributes to the server. When sending it to the server, the flags field specifies which attributes are included, and the server will use default values for the remaining attributes (or will not modify the values of remaining attributes). When receiving attributes from the server, the flags specify which attributes are included in the returned data. The server normally returns all attributes it knows about.
internal: SSH_FXP_ATTRS
Fields§
§size: Option<u64>Size of the file (optional)
owner: Option<Owner>Owner of the file (optional)
perms: Option<Permisions>Permissions of the file (optional)
time: Option<Time>Access and Modification time of the file (optional)
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Attrs
impl<'de> Deserialize<'de> for Attrs
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
impl Eq for Attrs
impl StructuralPartialEq for Attrs
Auto Trait Implementations§
impl Freeze for Attrs
impl RefUnwindSafe for Attrs
impl Send for Attrs
impl Sync for Attrs
impl Unpin for Attrs
impl UnwindSafe for Attrs
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