pub struct ScpTransferJson {
pub ok: bool,
pub event: String,
pub direction: String,
pub vps: String,
pub local: String,
pub remote: String,
pub bytes: u64,
pub duration_ms: u64,
}Expand description
scp upload|download --json success stdout.
Fields§
§ok: boolAlways true.
event: StringDiscriminator: "scp-transfer".
direction: String"upload" or "download".
vps: StringVPS name.
local: StringLocal path.
remote: StringRemote path.
bytes: u64Bytes transferred.
duration_ms: u64Duration in milliseconds.
Trait Implementations§
Source§impl Clone for ScpTransferJson
impl Clone for ScpTransferJson
Source§fn clone(&self) -> ScpTransferJson
fn clone(&self) -> ScpTransferJson
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 ScpTransferJson
impl Debug for ScpTransferJson
Source§impl<'de> Deserialize<'de> for ScpTransferJson
impl<'de> Deserialize<'de> for ScpTransferJson
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 ScpTransferJson
Source§impl PartialEq for ScpTransferJson
impl PartialEq for ScpTransferJson
Source§impl Serialize for ScpTransferJson
impl Serialize for ScpTransferJson
impl StructuralPartialEq for ScpTransferJson
Auto Trait Implementations§
impl Freeze for ScpTransferJson
impl RefUnwindSafe for ScpTransferJson
impl Send for ScpTransferJson
impl Sync for ScpTransferJson
impl Unpin for ScpTransferJson
impl UnsafeUnpin for ScpTransferJson
impl UnwindSafe for ScpTransferJson
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.