#[non_exhaustive]pub struct ForwardSshTunnelConnectivity {
pub hostname: String,
pub username: String,
pub port: i32,
pub authentication_method: Option<AuthenticationMethod>,
/* private fields */
}Expand description
Forward SSH Tunnel connectivity.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.hostname: StringRequired. Hostname for the SSH tunnel.
username: StringRequired. Username for the SSH tunnel.
port: i32Port for the SSH tunnel, default value is 22.
authentication_method: Option<AuthenticationMethod>Implementations§
Source§impl ForwardSshTunnelConnectivity
impl ForwardSshTunnelConnectivity
pub fn new() -> Self
Sourcepub fn set_hostname<T: Into<String>>(self, v: T) -> Self
pub fn set_hostname<T: Into<String>>(self, v: T) -> Self
Sets the value of hostname.
Sourcepub fn set_username<T: Into<String>>(self, v: T) -> Self
pub fn set_username<T: Into<String>>(self, v: T) -> Self
Sets the value of username.
Sourcepub fn set_authentication_method<T: Into<Option<AuthenticationMethod>>>(
self,
v: T,
) -> Self
pub fn set_authentication_method<T: Into<Option<AuthenticationMethod>>>( self, v: T, ) -> Self
Sets the value of authentication_method.
Note that all the setters affecting authentication_method are mutually
exclusive.
Sourcepub fn password(&self) -> Option<&String>
pub fn password(&self) -> Option<&String>
The value of authentication_method
if it holds a Password, None if the field is not set or
holds a different branch.
Sourcepub fn private_key(&self) -> Option<&String>
pub fn private_key(&self) -> Option<&String>
The value of authentication_method
if it holds a PrivateKey, None if the field is not set or
holds a different branch.
Sourcepub fn set_password<T: Into<String>>(self, v: T) -> Self
pub fn set_password<T: Into<String>>(self, v: T) -> Self
Sets the value of authentication_method
to hold a Password.
Note that all the setters affecting authentication_method are
mutually exclusive.
Sourcepub fn set_private_key<T: Into<String>>(self, v: T) -> Self
pub fn set_private_key<T: Into<String>>(self, v: T) -> Self
Sets the value of authentication_method
to hold a PrivateKey.
Note that all the setters affecting authentication_method are
mutually exclusive.
Trait Implementations§
Source§impl Clone for ForwardSshTunnelConnectivity
impl Clone for ForwardSshTunnelConnectivity
Source§fn clone(&self) -> ForwardSshTunnelConnectivity
fn clone(&self) -> ForwardSshTunnelConnectivity
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ForwardSshTunnelConnectivity
impl Debug for ForwardSshTunnelConnectivity
Source§impl Default for ForwardSshTunnelConnectivity
impl Default for ForwardSshTunnelConnectivity
Source§fn default() -> ForwardSshTunnelConnectivity
fn default() -> ForwardSshTunnelConnectivity
Source§impl<'de> Deserialize<'de> for ForwardSshTunnelConnectivitywhere
ForwardSshTunnelConnectivity: Default,
impl<'de> Deserialize<'de> for ForwardSshTunnelConnectivitywhere
ForwardSshTunnelConnectivity: 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>,
Source§impl Message for ForwardSshTunnelConnectivity
impl Message for ForwardSshTunnelConnectivity
Source§impl PartialEq for ForwardSshTunnelConnectivity
impl PartialEq for ForwardSshTunnelConnectivity
Source§fn eq(&self, other: &ForwardSshTunnelConnectivity) -> bool
fn eq(&self, other: &ForwardSshTunnelConnectivity) -> bool
self and other values to be equal, and is used by ==.