pub struct ScpOptions {
pub password: Option<SecretString>,
pub key: Option<String>,
pub key_passphrase: Option<SecretString>,
pub timeout: Option<TimeoutMs>,
pub replace_host_key: bool,
pub json: bool,
pub use_agent: bool,
pub agent_socket: Option<String>,
}Expand description
Runtime overrides for the scp subcommand (parity with exec).
G-SECDEV-02: secrets are secrecy::SecretString from the CLI boundary.
G-TYPE-18: timeout is refined [TimeoutMs].
Fields§
§password: Option<SecretString>SSH password (already resolved from flag or stdin).
key: Option<String>Private key path.
key_passphrase: Option<SecretString>Key passphrase (already resolved).
timeout: Option<TimeoutMs>Total connect+transfer timeout in ms (refined at CLI boundary).
replace_host_key: boolReplace divergent host key (global --replace-host-key).
json: boolEmit success JSON (local flag or global format).
use_agent: boolUse ssh-agent (G-SFTP-17 / G-SSH-04 parity). CLI/XDG only.
agent_socket: Option<String>Agent socket (Unix) or named pipe (Windows).
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