pub struct PgDriverBuilder { /* private fields */ }Expand description
Implementations§
Source§impl PgDriverBuilder
impl PgDriverBuilder
Sourcepub fn password(self, password: impl Into<String>) -> Self
pub fn password(self, password: impl Into<String>) -> Self
Set the password (optional, for cleartext/MD5/SCRAM-SHA-256 auth).
Sourcepub fn gss_enc_mode(self, mode: GssEncMode) -> Self
pub fn gss_enc_mode(self, mode: GssEncMode) -> Self
Set GSSAPI session encryption mode (disable, prefer, require).
Sourcepub fn tls_ca_cert_pem(self, ca_pem: Vec<u8>) -> Self
pub fn tls_ca_cert_pem(self, ca_pem: Vec<u8>) -> Self
Set custom CA bundle PEM for TLS validation.
Sourcepub fn auth_settings(self, settings: AuthSettings) -> Self
pub fn auth_settings(self, settings: AuthSettings) -> Self
Override password-auth policy.
Sourcepub fn channel_binding_mode(self, mode: ScramChannelBindingMode) -> Self
pub fn channel_binding_mode(self, mode: ScramChannelBindingMode) -> Self
Set SCRAM channel-binding mode.
Sourcepub fn gss_token_provider(self, provider: GssTokenProvider) -> Self
pub fn gss_token_provider(self, provider: GssTokenProvider) -> Self
Set Kerberos/GSS/SSPI token provider callback.
Sourcepub fn gss_token_provider_ex(self, provider: GssTokenProviderEx) -> Self
pub fn gss_token_provider_ex(self, provider: GssTokenProviderEx) -> Self
Set a stateful Kerberos/GSS/SSPI token provider.
Sourcepub fn startup_param(
self,
key: impl Into<String>,
value: impl Into<String>,
) -> Self
pub fn startup_param( self, key: impl Into<String>, value: impl Into<String>, ) -> Self
Add a custom StartupMessage parameter.
Example: .startup_param("application_name", "qail-replica")
Sourcepub fn logical_replication(self) -> Self
pub fn logical_replication(self) -> Self
Enable logical replication startup mode (replication=database).
This is required before issuing commands like IDENTIFY_SYSTEM or
CREATE_REPLICATION_SLOT on a replication connection.
Trait Implementations§
Source§impl Default for PgDriverBuilder
impl Default for PgDriverBuilder
Source§fn default() -> PgDriverBuilder
fn default() -> PgDriverBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PgDriverBuilder
impl !RefUnwindSafe for PgDriverBuilder
impl Send for PgDriverBuilder
impl Sync for PgDriverBuilder
impl Unpin for PgDriverBuilder
impl UnsafeUnpin for PgDriverBuilder
impl !UnwindSafe for PgDriverBuilder
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