Struct hdbconnect::ConnectParams [−][src]
pub struct ConnectParams { /* fields omitted */ }
An immutable struct with all information necessary to open a new connection to a HANA database.
An instance of ConnectParams
can be created either programmatically with the builder,
or implicitly using the trait IntoConnectParams
and its implementations.
Example
use hdbconnect::IntoConnectParams; let conn_params = "hdbsql://my_user:my_passwd@the_host:2222" .into_connect_params() .unwrap();
Methods
impl ConnectParams
[src]
impl ConnectParams
pub fn builder() -> ConnectParamsBuilder
[src]
pub fn builder() -> ConnectParamsBuilder
Returns a new builder for ConnectParams.
pub fn hostname(&self) -> &String
[src]
pub fn hostname(&self) -> &String
The target host.
pub fn port(&self) -> u16
[src]
pub fn port(&self) -> u16
The target port.
pub fn dbuser(&self) -> &str
[src]
pub fn dbuser(&self) -> &str
The database user.
pub fn password(&self) -> &str
[src]
pub fn password(&self) -> &str
The password.
pub fn options(&self) -> &[(String, String)]
[src]
pub fn options(&self) -> &[(String, String)]
Options to be passed to HANA.
Trait Implementations
impl Clone for ConnectParams
[src]
impl Clone for ConnectParams
fn clone(&self) -> ConnectParams
[src]
fn clone(&self) -> ConnectParams
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for ConnectParams
[src]
impl Debug for ConnectParams
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl IntoConnectParams for ConnectParams
[src]
impl IntoConnectParams for ConnectParams
fn into_connect_params(self) -> HdbResult<ConnectParams>
[src]
fn into_connect_params(self) -> HdbResult<ConnectParams>
Converts the value of self
into a ConnectParams
.
Auto Trait Implementations
impl Send for ConnectParams
impl Send for ConnectParams
impl Sync for ConnectParams
impl Sync for ConnectParams