pub struct ExecOptions {
pub password: Option<SecretString>,
pub sudo_password: Option<SecretString>,
pub su_password: Option<SecretString>,
pub timeout: Option<TimeoutMs>,
pub key: Option<String>,
pub key_passphrase: Option<SecretString>,
pub use_agent: bool,
pub agent_socket: Option<String>,
pub description: Option<String>,
pub replace_host_key: bool,
pub disable_sudo: bool,
pub steps: Vec<RemoteCommand>,
}Expand description
Common remote execution options.
G-SECDEV-02: password fields are SecretString so zeroize-on-drop applies
through multi-host clone/fan-out (secrecy 0.10 SecretString: Clone).
G-TYPE-18/19: timeout is [TimeoutMs]; steps are [RemoteCommand].
Fields§
§password: Option<SecretString>Override password.
sudo_password: Option<SecretString>Override sudo.
su_password: Option<SecretString>Override su.
timeout: Option<TimeoutMs>Override timeout (refined at CLI boundary).
key: Option<String>Override key path.
key_passphrase: Option<SecretString>Override key passphrase.
use_agent: boolUse ssh-agent (G-SSH-04).
agent_socket: Option<String>Agent socket path (CLI/XDG).
description: Option<String>Optional shell description comment.
replace_host_key: boolreplace host key.
disable_sudo: booldisable sudo global.
steps: Vec<RemoteCommand>Extra commands on the same SSH session after the primary (G-O3 / G-TYPE-19).
Trait Implementations§
Source§impl Clone for ExecOptions
impl Clone for ExecOptions
Source§fn clone(&self) -> ExecOptions
fn clone(&self) -> ExecOptions
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 ExecOptions
impl Debug for ExecOptions
Source§impl Default for ExecOptions
impl Default for ExecOptions
Source§fn default() -> ExecOptions
fn default() -> ExecOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ExecOptions
impl RefUnwindSafe for ExecOptions
impl Send for ExecOptions
impl Sync for ExecOptions
impl Unpin for ExecOptions
impl UnsafeUnpin for ExecOptions
impl UnwindSafe for ExecOptions
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