pub struct PgConfig {
pub host: String,
pub port: u16,
pub user: String,
pub password: String,
pub database: String,
pub socket_dir: Option<String>,
}Expand description
Connection configuration.
Fields§
§host: String§port: u16§user: String§password: String§database: String§socket_dir: Option<String>Optional Unix domain socket directory.
When set, connect via <socket_dir>/.s.PGSQL.<port> instead of TCP.
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 UnsafeUnpin 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