[][src]Trait hdbconnect::IntoConnectParamsBuilder

pub trait IntoConnectParamsBuilder {
    fn into_connect_params_builder(self) -> HdbResult<ConnectParamsBuilder>;
}

A trait implemented by types that can be converted into a ConnectParamsBuilder.

Example

    use hdbconnect::IntoConnectParamsBuilder;

    let cp_builder = "hdbsql://MEIER:schLau@abcd123:2222"
        .into_connect_params_builder()
        .unwrap();

    assert_eq!("abcd123", cp_builder.get_hostname().unwrap());

Required methods

fn into_connect_params_builder(self) -> HdbResult<ConnectParamsBuilder>

Converts the value of self into a ConnectParamsBuilder.

Errors

HdbError::Usage if wrong information was provided

Loading content...

Implementations on Foreign Types

impl<'a> IntoConnectParamsBuilder for &'a str[src]

impl IntoConnectParamsBuilder for String[src]

impl IntoConnectParamsBuilder for Url[src]

Loading content...

Implementors

Loading content...