Struct hdbconnect::ConnectParamsBuilder[][src]

pub struct ConnectParamsBuilder { /* fields omitted */ }

A builder for ConnectParams.

Example

use hdbconnect::ConnectParams;
let connect_params = ConnectParams::builder()
    .hostname("abcd123")
    .port(2222)
    .dbuser("MEIER")
    .password("schlau")
    .build()
    .unwrap();

Methods

impl ConnectParamsBuilder
[src]

Creates a new builder.

Sets the hostname.

Sets the port.

Sets the database user.

Sets the password.

Adds a runtime parameter.

Constructs a ConnectParams from the builder.

Trait Implementations

impl Clone for ConnectParamsBuilder
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for ConnectParamsBuilder
[src]

Formats the value using the given formatter. Read more

impl Default for ConnectParamsBuilder
[src]

Returns the "default value" for a type. Read more

Auto Trait Implementations