pub struct ScpHostJson {
pub name: String,
pub ok: bool,
pub bytes: Option<u64>,
pub duration_ms: Option<u64>,
pub local: Option<String>,
pub error: Option<String>,
}Expand description
One entry in multi-host scp --all --json.
Fields§
§name: StringVPS name.
ok: boolWhether transfer succeeded.
bytes: Option<u64>Bytes transferred when ok.
duration_ms: Option<u64>Duration ms when measured.
local: Option<String>Local path used (download may be host-suffixed).
error: Option<String>Error detail.
Trait Implementations§
Source§impl Clone for ScpHostJson
impl Clone for ScpHostJson
Source§fn clone(&self) -> ScpHostJson
fn clone(&self) -> ScpHostJson
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 ScpHostJson
impl Debug for ScpHostJson
Source§impl<'de> Deserialize<'de> for ScpHostJson
impl<'de> Deserialize<'de> for ScpHostJson
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 ScpHostJson
Source§impl PartialEq for ScpHostJson
impl PartialEq for ScpHostJson
Source§impl Serialize for ScpHostJson
impl Serialize for ScpHostJson
impl StructuralPartialEq for ScpHostJson
Auto Trait Implementations§
impl Freeze for ScpHostJson
impl RefUnwindSafe for ScpHostJson
impl Send for ScpHostJson
impl Sync for ScpHostJson
impl Unpin for ScpHostJson
impl UnsafeUnpin for ScpHostJson
impl UnwindSafe for ScpHostJson
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.