pub struct TunnelAuth {
pub password: Option<SecretString>,
pub key: Option<String>,
pub key_passphrase: Option<SecretString>,
pub use_agent: bool,
pub agent_socket: Option<String>,
}Expand description
SSH credential overrides for one tunnel invocation.
Fields§
§password: Option<SecretString>Password override.
key: Option<String>Private key path override.
key_passphrase: Option<SecretString>Key passphrase override.
use_agent: boolAuthenticate through an SSH agent.
agent_socket: Option<String>Explicit agent socket path.
Trait Implementations§
Source§impl Default for TunnelAuth
impl Default for TunnelAuth
Source§fn default() -> TunnelAuth
fn default() -> TunnelAuth
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TunnelAuth
impl RefUnwindSafe for TunnelAuth
impl Send for TunnelAuth
impl Sync for TunnelAuth
impl Unpin for TunnelAuth
impl UnsafeUnpin for TunnelAuth
impl UnwindSafe for TunnelAuth
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