rust-ef-postgres 1.7.0

PostgreSQL provider for Rust Entity Framework
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/// TLS mode for PostgreSQL connections.
///
/// `Disable` uses plaintext connections (`tokio_postgres::NoTls`) — the
/// pre-v1.4 default, kept for backward compatibility.
///
/// `Require` enforces TLS via the platform's native TLS implementation
/// (SChannel on Windows, OpenSSL on Linux, Secure Transport on macOS). The
/// connector is cloned per pool acquisition, so it must be `Clone`
/// (`native_tls::TlsConnector` satisfies this).
#[derive(Clone)]
pub enum PgTlsMode {
    /// Plaintext connection (backward compatible with v1.3).
    Disable,
    /// Enforce TLS using the provided `native_tls::TlsConnector`.
    Require(native_tls::TlsConnector),
}