pub struct ScpOptions {
pub password: Option<String>,
pub key: Option<String>,
pub key_passphrase: Option<String>,
pub timeout: Option<u64>,
pub replace_host_key: bool,
pub json: bool,
}Expand description
Runtime overrides for the scp subcommand (parity with exec).
Fields§
§password: Option<String>SSH password (already resolved from flag or stdin).
key: Option<String>Private key path.
key_passphrase: Option<String>Key passphrase (already resolved).
timeout: Option<u64>Total connect+transfer timeout in ms.
replace_host_key: boolReplace divergent host key (global --replace-host-key).
json: boolEmit success JSON (local flag or global format).
Trait Implementations§
Source§impl Clone for ScpOptions
impl Clone for ScpOptions
Source§fn clone(&self) -> ScpOptions
fn clone(&self) -> ScpOptions
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 ScpOptions
impl Debug for ScpOptions
Source§impl Default for ScpOptions
impl Default for ScpOptions
Source§fn default() -> ScpOptions
fn default() -> ScpOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ScpOptions
impl RefUnwindSafe for ScpOptions
impl Send for ScpOptions
impl Sync for ScpOptions
impl Unpin for ScpOptions
impl UnsafeUnpin for ScpOptions
impl UnwindSafe for ScpOptions
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