pub enum PostgresSslMode {
Disable,
Allow,
Prefer,
Require,
VerifyCa,
VerifyFull,
}Expand description
PostgreSQL TLS policy: the ssl value of host-style dbCredentials
(default Disable), or the sslmode of a URL.
ssl = true means Require, false means Disable. Whenever TLS is
used, the CLI’s connector verifies the server certificate; only
VerifyCa skips the host-name check.
Variants§
Disable
No TLS (disable).
Allow
allow; connects like Prefer.
Prefer
Use TLS if the server offers it (prefer).
Require
Require TLS (require).
VerifyCa
Require TLS; skip the host-name check (verify-ca).
VerifyFull
Require TLS (verify-full).
Trait Implementations§
Source§impl Clone for PostgresSslMode
impl Clone for PostgresSslMode
impl Copy for PostgresSslMode
Source§impl Debug for PostgresSslMode
impl Debug for PostgresSslMode
Source§impl Default for PostgresSslMode
impl Default for PostgresSslMode
impl Eq for PostgresSslMode
Source§impl PartialEq for PostgresSslMode
impl PartialEq for PostgresSslMode
impl StructuralPartialEq for PostgresSslMode
Auto Trait Implementations§
impl Freeze for PostgresSslMode
impl RefUnwindSafe for PostgresSslMode
impl Send for PostgresSslMode
impl Sync for PostgresSslMode
impl Unpin for PostgresSslMode
impl UnsafeUnpin for PostgresSslMode
impl UnwindSafe for PostgresSslMode
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