pub struct SftpFsOpJson {
pub ok: bool,
pub event: String,
pub op: String,
pub vps: String,
pub path: String,
pub to: Option<String>,
pub duration_ms: u64,
pub kind: Option<String>,
pub size: Option<u64>,
pub mode: Option<u32>,
pub mtime: Option<u32>,
}Expand description
sftp mkdir|rmdir|rm|rename|stat --json (stat uses size/mode fields).
Fields§
§ok: boolAlways true.
event: StringDiscriminator: "sftp-fs-op".
op: StringOperation name.
vps: StringVPS name.
path: StringPrimary path.
to: Option<String>Rename target when applicable.
duration_ms: u64Duration ms.
kind: Option<String>Stat kind when op=stat.
size: Option<u64>Stat size when op=stat.
mode: Option<u32>Stat mode when op=stat.
mtime: Option<u32>Stat mtime when op=stat.
Trait Implementations§
Source§impl Clone for SftpFsOpJson
impl Clone for SftpFsOpJson
Source§fn clone(&self) -> SftpFsOpJson
fn clone(&self) -> SftpFsOpJson
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SftpFsOpJson
impl Debug for SftpFsOpJson
Source§impl<'de> Deserialize<'de> for SftpFsOpJson
impl<'de> Deserialize<'de> for SftpFsOpJson
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 SftpFsOpJson
Source§impl PartialEq for SftpFsOpJson
impl PartialEq for SftpFsOpJson
Source§impl Serialize for SftpFsOpJson
impl Serialize for SftpFsOpJson
impl StructuralPartialEq for SftpFsOpJson
Auto Trait Implementations§
impl Freeze for SftpFsOpJson
impl RefUnwindSafe for SftpFsOpJson
impl Send for SftpFsOpJson
impl Sync for SftpFsOpJson
impl Unpin for SftpFsOpJson
impl UnsafeUnpin for SftpFsOpJson
impl UnwindSafe for SftpFsOpJson
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.