Struct tokio_postgres::params::ConnectParams [] [src]

pub struct ConnectParams { /* fields omitted */ }

Information necessary to open a new connection to a Postgres server.

Methods

impl ConnectParams
[src]

Returns a new builder.

The target host.

The target port.

Defaults to 5432.

The user to log in as.

A user is required to open a new connection but not to cancel a query.

The database to connect to.

Runtime parameters to be passed to the Postgres backend.

Trait Implementations

impl IntoConnectParams for ConnectParams
[src]

Converts the value of self into a ConnectParams.

impl Debug for ConnectParams
[src]

Formats the value using the given formatter.

impl Clone for ConnectParams
[src]