#[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 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 EncryptionSetting
impl Debug for EncryptionSetting
Source§impl PartialEq for EncryptionSetting
impl PartialEq 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