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

The target server.

The target port.

Defaults to 5432 if not specified.

The user to login as.

Connection::connect requires a user but cancel_query does not.

The database to connect to.

Defaults the value of user.

Runtime parameters to be passed to the Postgres backend.

Trait Implementations

impl Clone for ConnectParams
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for ConnectParams
[src]

Formats the value using the given formatter.

impl IntoConnectParams for ConnectParams
[src]

Converts the value of self into a ConnectParams.