#[non_exhaustive]pub struct PostgresqlSslConfig {
pub encryption_setting: Option<EncryptionSetting>,
/* private fields */
}
Expand description
PostgreSQL SSL configuration information.
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.encryption_setting: Option<EncryptionSetting>
The encryption settings available for PostgreSQL connection profiles. This captures various SSL mode supported by PostgreSQL, which includes TLS encryption with server verification, TLS encryption with both server and client verification and no TLS encryption.
Implementations§
Source§impl PostgresqlSslConfig
impl PostgresqlSslConfig
pub fn new() -> Self
Sourcepub fn set_encryption_setting<T: Into<Option<EncryptionSetting>>>(
self,
v: T,
) -> Self
pub fn set_encryption_setting<T: Into<Option<EncryptionSetting>>>( self, v: T, ) -> Self
Sets the value of encryption_setting.
Note that all the setters affecting encryption_setting
are mutually
exclusive.
Sourcepub fn server_verification(&self) -> Option<&Box<ServerVerification>>
pub fn server_verification(&self) -> Option<&Box<ServerVerification>>
The value of encryption_setting
if it holds a ServerVerification
, None
if the field is not set or
holds a different branch.
Sourcepub fn set_server_verification<T: Into<Box<ServerVerification>>>(
self,
v: T,
) -> Self
pub fn set_server_verification<T: Into<Box<ServerVerification>>>( self, v: T, ) -> Self
Sets the value of encryption_setting
to hold a ServerVerification
.
Note that all the setters affecting encryption_setting
are
mutually exclusive.
Sourcepub fn server_and_client_verification(
&self,
) -> Option<&Box<ServerAndClientVerification>>
pub fn server_and_client_verification( &self, ) -> Option<&Box<ServerAndClientVerification>>
The value of encryption_setting
if it holds a ServerAndClientVerification
, None
if the field is not set or
holds a different branch.
Sourcepub fn set_server_and_client_verification<T: Into<Box<ServerAndClientVerification>>>(
self,
v: T,
) -> Self
pub fn set_server_and_client_verification<T: Into<Box<ServerAndClientVerification>>>( self, v: T, ) -> Self
Sets the value of encryption_setting
to hold a ServerAndClientVerification
.
Note that all the setters affecting encryption_setting
are
mutually exclusive.
Trait Implementations§
Source§impl Clone for PostgresqlSslConfig
impl Clone for PostgresqlSslConfig
Source§fn clone(&self) -> PostgresqlSslConfig
fn clone(&self) -> PostgresqlSslConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more