#[non_exhaustive]pub enum EncryptionSetting {
ServerVerification(Box<ServerVerification>),
ServerAndClientVerification(Box<ServerAndClientVerification>),
}Expand description
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.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
ServerVerification(Box<ServerVerification>)
If this field is set, the communication will be encrypted with TLS encryption and the server identity will be authenticated.
ServerAndClientVerification(Box<ServerAndClientVerification>)
If this field is set, the communication will be encrypted with TLS encryption and both the server identity and the client identity will be authenticated.
Trait Implementations§
Source§impl Clone for EncryptionSetting
impl Clone for EncryptionSetting
Source§fn clone(&self) -> EncryptionSetting
fn clone(&self) -> EncryptionSetting
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 EncryptionSetting
impl Debug for EncryptionSetting
Source§impl<'de> Deserialize<'de> for EncryptionSetting
impl<'de> Deserialize<'de> for EncryptionSetting
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
Source§impl PartialEq for EncryptionSetting
impl PartialEq for EncryptionSetting
Source§impl Serialize for EncryptionSetting
impl Serialize for EncryptionSetting
impl StructuralPartialEq for EncryptionSetting
Auto Trait Implementations§
impl Freeze for EncryptionSetting
impl RefUnwindSafe for EncryptionSetting
impl Send for EncryptionSetting
impl Sync for EncryptionSetting
impl Unpin for EncryptionSetting
impl UnwindSafe for EncryptionSetting
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