pub struct SftpOptions {
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>,
pub recursive: bool,
}Available on crate feature
ssh-real only.Expand description
Per-invocation SFTP options resolved at the CLI boundary.
Fields§
§password: Option<SecretString>SSH password (resolved).
key: Option<String>Private key path.
key_passphrase: Option<SecretString>Key passphrase (resolved).
timeout: Option<TimeoutMs>Total connect+op timeout ms.
replace_host_key: boolReplace divergent host key.
json: boolEmit JSON success envelopes.
use_agent: boolUse ssh-agent (CLI/XDG only).
agent_socket: Option<String>Agent socket / named pipe path.
recursive: boolRecursive tree transfer.
Trait Implementations§
Source§impl Clone for SftpOptions
impl Clone for SftpOptions
Source§fn clone(&self) -> SftpOptions
fn clone(&self) -> SftpOptions
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 SftpOptions
impl Debug for SftpOptions
Source§impl Default for SftpOptions
impl Default for SftpOptions
Source§fn default() -> SftpOptions
fn default() -> SftpOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SftpOptions
impl RefUnwindSafe for SftpOptions
impl Send for SftpOptions
impl Sync for SftpOptions
impl Unpin for SftpOptions
impl UnsafeUnpin for SftpOptions
impl UnwindSafe for SftpOptions
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