[][src]Struct pleingres::ConfigFile

pub struct ConfigFile {
    pub user: String,
    pub password: String,
    pub db: String,
    pub addr: String,
    pub tcp_keepalive: Option<u32>,
    pub idle_timeout: Option<u64>,
    pub ssl: Option<SSLConfigFile>,
}

A serializable version of Parameters, for inclusion in configuration files.

Fields

user: String

PostgreSQL user.

password: String

Password.

db: String

Database name.

addr: String

Network address of the server.

tcp_keepalive: Option<u32>

TCP keepalive interval, defaults to no keep alive (in milliseconds).

idle_timeout: Option<u64>

Time to wait before reconnecting an idle connection (in milliseconds).

ssl: Option<SSLConfigFile>

SSL parameters

Methods

impl ConfigFile[src]

pub fn to_parameters(&self) -> Result<Parameters, Error>[src]

Convert a configuration file to parameters.

Trait Implementations

impl Default for ConfigFile[src]

impl Serialize for ConfigFile[src]

impl<'de> Deserialize<'de> for ConfigFile[src]

Auto Trait Implementations

impl Send for ConfigFile

impl Sync for ConfigFile

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Erased for T

impl<T> Same for T

type Output = T

Should always be Self

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]