pub struct SshAuthArgs {
pub password: Option<String>,
pub password_stdin: bool,
pub key: Option<PathBuf>,
pub key_passphrase: Option<String>,
pub key_passphrase_stdin: bool,
pub use_agent: bool,
pub agent_socket: Option<PathBuf>,
}Expand description
Shared SSH authentication overrides (flatten into exec/scp/tunnel/health-check).
Converted to domain strings at the command boundary (G-08/G-09/G-24).
Fields§
§password: Option<String>SSH password override.
password_stdin: boolReads the SSH password from stdin.
key: Option<PathBuf>Private key path override.
key_passphrase: Option<String>Key passphrase.
key_passphrase_stdin: boolReads the key passphrase from stdin.
use_agent: boolAuthenticate via ssh-agent (G-SSH-04). Requires --agent-socket on Unix.
agent_socket: Option<PathBuf>Agent socket (Unix) or named pipe (Windows). CLI/XDG only — not env store.
Implementations§
Source§impl SshAuthArgs
impl SshAuthArgs
Sourcepub fn key_path_string(&self) -> Option<String>
pub fn key_path_string(&self) -> Option<String>
Domain boundary: PathBuf → owned path string for VPS/SSH layers.
Trait Implementations§
Source§impl Args for SshAuthArgs
impl Args for SshAuthArgs
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl Clone for SshAuthArgs
impl Clone for SshAuthArgs
Source§fn clone(&self) -> SshAuthArgs
fn clone(&self) -> SshAuthArgs
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 SshAuthArgs
impl Debug for SshAuthArgs
Source§impl Default for SshAuthArgs
impl Default for SshAuthArgs
Source§fn default() -> SshAuthArgs
fn default() -> SshAuthArgs
Returns the “default value” for a type. Read more
Source§impl FromArgMatches for SshAuthArgs
impl FromArgMatches for SshAuthArgs
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Auto Trait Implementations§
impl Freeze for SshAuthArgs
impl RefUnwindSafe for SshAuthArgs
impl Send for SshAuthArgs
impl Sync for SshAuthArgs
impl Unpin for SshAuthArgs
impl UnsafeUnpin for SshAuthArgs
impl UnwindSafe for SshAuthArgs
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