pub struct PgConfig {
pub dbname: Option<String>,
pub host: Option<String>,
pub port: Option<u16>,
pub user: Option<String>,
pub password: Option<String>,
}Expand description
Minimal Postgres configuration (keeps the public API backward-compatible
with the old deadpool_postgres::Config usage).
Fields§
§dbname: Option<String>§host: Option<String>§port: Option<u16>§user: Option<String>§password: Option<String>Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PgConfig
impl RefUnwindSafe for PgConfig
impl Send for PgConfig
impl Sync for PgConfig
impl Unpin for PgConfig
impl UnwindSafe for PgConfig
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