#[non_exhaustive]pub struct ConnConfig {
pub addr: String,
pub user: String,
pub password: String,
pub database: String,
pub tls_mode: TlsMode,
}Expand description
Connection configuration for reconnection.
Marked #[non_exhaustive] so additional connection options (compression,
statement_timeout, etc.) can be added without breaking downstream construction.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.addr: StringServer address as host:port (e.g., "127.0.0.1:5432").
user: StringPostgreSQL role to authenticate as.
password: StringPassword for the role; ignored when the server requests trust auth.
database: StringDatabase name to attach to after authentication.
tls_mode: TlsModeTLS preference (plain, prefer, require, verify-ca, verify-full).
Trait Implementations§
Source§impl Clone for ConnConfig
impl Clone for ConnConfig
Source§fn clone(&self) -> ConnConfig
fn clone(&self) -> ConnConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ConnConfig
impl RefUnwindSafe for ConnConfig
impl Send for ConnConfig
impl Sync for ConnConfig
impl Unpin for ConnConfig
impl UnsafeUnpin for ConnConfig
impl UnwindSafe for ConnConfig
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