pub struct SshHostConfig {
pub alias: String,
pub hostname: Option<String>,
pub user: Option<String>,
pub port: Option<u16>,
pub identity_file: Option<String>,
}Expand description
User-defined SSH host (extends ~/.ssh/config).
[[ssh_hosts]]
alias = "prod-db"
hostname = "10.0.1.5"
user = "deploy"
port = 22
identity_file = "~/.ssh/id_ed25519_prod"Fields§
§alias: String§hostname: Option<String>§user: Option<String>§port: Option<u16>§identity_file: Option<String>Trait Implementations§
Source§impl Clone for SshHostConfig
impl Clone for SshHostConfig
Source§fn clone(&self) -> SshHostConfig
fn clone(&self) -> SshHostConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 SshHostConfig
impl Debug for SshHostConfig
Source§impl Default for SshHostConfig
impl Default for SshHostConfig
Source§fn default() -> SshHostConfig
fn default() -> SshHostConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SshHostConfigwhere
SshHostConfig: Default,
impl<'de> Deserialize<'de> for SshHostConfigwhere
SshHostConfig: Default,
Source§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
Auto Trait Implementations§
impl Freeze for SshHostConfig
impl RefUnwindSafe for SshHostConfig
impl Send for SshHostConfig
impl Sync for SshHostConfig
impl Unpin for SshHostConfig
impl UnsafeUnpin for SshHostConfig
impl UnwindSafe for SshHostConfig
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