Struct ClientConfig
pub struct ClientConfig {
pub ssh_config_path: String,
pub program: String,
pub arguments: Vec<String>,
pub username_host_placeholder: String,
}Expand description
Representation of the client subcommand configurations.
Fields§
§ssh_config_path: String§program: String§arguments: Vec<String>List of arguments provided to the program.
Must include the username_host_placeholder.
§Example
['-XY', '{{USERNAME_AT_HOST}}']
username_host_placeholder: StringPlaceholder string used to inject <user>@<host> into the list of arguments.
§Example
'{{USERNAME_AT_HOST}}'
Trait Implementations§
§impl Debug for ClientConfig
impl Debug for ClientConfig
§impl Default for ClientConfig
impl Default for ClientConfig
§fn default() -> Self
fn default() -> Self
Returns a sensible default ClientConfig.
§Returns
ClientConfig with the following values:
ssh_config_path-%USERPROFILE%\.ssh\configprogram-ssharguments--XY {{USERNAME_AT_HOST}}usernamt_host_placeholder-{{USERNAME_AT_HOST}}
Note: %USERPROFILE% actually is resolved by us, so the actual value is whatever the environment variable at runtime points to.
§impl<'de> Deserialize<'de> for ClientConfig
impl<'de> Deserialize<'de> for ClientConfig
§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl From<ClientConfig> for ClientConfigOpt
impl From<ClientConfig> for ClientConfigOpt
§fn from(val: ClientConfig) -> Self
fn from(val: ClientConfig) -> Self
Wraps all configuration values as options.
§impl From<ClientConfigOpt> for ClientConfig
impl From<ClientConfigOpt> for ClientConfig
§fn from(val: ClientConfigOpt) -> Self
fn from(val: ClientConfigOpt) -> Self
Unwraps the existing configuration values or applies the default.
§impl PartialEq for ClientConfig
impl PartialEq for ClientConfig
§impl Serialize for ClientConfig
impl Serialize for ClientConfig
impl StructuralPartialEq for ClientConfig
Auto Trait Implementations§
impl Freeze for ClientConfig
impl RefUnwindSafe for ClientConfig
impl Send for ClientConfig
impl Sync for ClientConfig
impl Unpin for ClientConfig
impl UnwindSafe for ClientConfig
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