Struct mz_ssh_util::tunnel::SshTunnelConfig
source · pub struct SshTunnelConfig {
pub host: String,
pub port: u16,
pub user: String,
pub key_pair: SshKeyPair,
}
Expand description
Specifies an SSH tunnel.
Fields§
§host: String
The hostname of the SSH bastion server.
port: u16
The port to connect to.
user: String
The name of the user to connect as.
key_pair: SshKeyPair
The SSH key pair to authenticate with.
Implementations§
Trait Implementations§
source§impl Clone for SshTunnelConfig
impl Clone for SshTunnelConfig
source§fn clone(&self) -> SshTunnelConfig
fn clone(&self) -> SshTunnelConfig
Returns a copy 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 SshTunnelConfig
impl Debug for SshTunnelConfig
source§impl PartialEq<SshTunnelConfig> for SshTunnelConfig
impl PartialEq<SshTunnelConfig> for SshTunnelConfig
source§fn eq(&self, other: &SshTunnelConfig) -> bool
fn eq(&self, other: &SshTunnelConfig) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.