Struct postgres_shared::params::ConnectParams
[−]
[src]
pub struct ConnectParams { /* fields omitted */ }
Information necessary to open a new connection to a Postgres server.
Methods
impl ConnectParams
[src]
fn builder() -> Builder
[src]
Returns a new builder.
fn host(&self) -> &Host
[src]
The target host.
fn port(&self) -> u16
[src]
The target port.
Defaults to 5432.
fn user(&self) -> Option<&User>
[src]
The user to log in as.
A user is required to open a new connection but not to cancel a query.
fn database(&self) -> Option<&str>
[src]
The database to connect to.
fn options(&self) -> &[(String, String)]
[src]
Runtime parameters to be passed to the Postgres backend.
Trait Implementations
impl Clone for ConnectParams
[src]
fn clone(&self) -> ConnectParams
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for ConnectParams
[src]
impl IntoConnectParams for ConnectParams
[src]
fn into_connect_params(self) -> Result<ConnectParams, Box<Error + Sync + Send>>
[src]
Converts the value of self
into a ConnectParams
.