Struct tokio_postgres::params::ConnectParams []

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 Debug for ConnectParams

Formats the value using the given formatter.

impl Clone for ConnectParams

impl IntoConnectParams for ConnectParams

Converts the value of self into a ConnectParams.