Struct postgres::ConnectParams
[−]
[src]
pub struct ConnectParams { pub target: ConnectTarget, pub port: Option<u16>, pub user: Option<UserInfo>, pub database: Option<String>, pub options: Vec<(String, String)>, }
Information necessary to open a new connection to a Postgres server.
Fields
target: ConnectTarget
The target server.
port: Option<u16>
The target port.
Defaults to 5432 if not specified.
user: Option<UserInfo>
The user to login as.
Connection::connect
requires a user but cancel_query
does not.
database: Option<String>
The database to connect to.
Defaults the value of user
.
options: Vec<(String, String)>
Runtime parameters to be passed to the Postgres backend.
Trait Implementations
impl Debug for ConnectParams
[src]
impl Clone for ConnectParams
[src]
fn clone(&self) -> ConnectParams
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl IntoConnectParams for ConnectParams
[src]
fn into_connect_params(self) -> Result<ConnectParams, Box<StdError + Sync + Send>>
Converts the value of self
into a ConnectParams
.