pub struct ExaConnectOptionsBuilder { /* private fields */ }Expand description
Builder for ExaConnectOptions.
Implementations§
Source§impl ExaConnectOptionsBuilder
impl ExaConnectOptionsBuilder
Sourcepub fn build(self) -> Result<ExaConnectOptions, Error>
pub fn build(self) -> Result<ExaConnectOptions, Error>
Consumes this builder and returns an instance of ExaConnectOptions.
§Errors
Will return an error if no host or other than exactly one login method were provided.
pub fn host(self, host: String) -> ExaConnectOptionsBuilder
pub fn port(self, port: u16) -> ExaConnectOptionsBuilder
Sourcepub fn extra_host(
self,
host: String,
port: Option<u16>,
) -> ExaConnectOptionsBuilder
pub fn extra_host( self, host: String, port: Option<u16>, ) -> ExaConnectOptionsBuilder
Appends an additional host to be used for randomly connecting to Exasol nodes.
Can be called multiple times.
pub fn ssl_mode(self, ssl_mode: ExaSslMode) -> ExaConnectOptionsBuilder
pub fn ssl_ca(self, ssl_ca: CertificateInput) -> ExaConnectOptionsBuilder
pub fn ssl_client_cert( self, ssl_client_cert: CertificateInput, ) -> ExaConnectOptionsBuilder
pub fn ssl_client_key( self, ssl_client_key: CertificateInput, ) -> ExaConnectOptionsBuilder
Sourcepub fn statement_cache_capacity(
self,
capacity: usize,
) -> ExaConnectOptionsBuilder
pub fn statement_cache_capacity( self, capacity: usize, ) -> ExaConnectOptionsBuilder
Sets the capacity of the statement cache.
The cache is enabled by default. Setting the capacity to 0 disables the cache.
pub fn username(self, username: String) -> ExaConnectOptionsBuilder
pub fn password(self, password: String) -> ExaConnectOptionsBuilder
pub fn access_token(self, access_token: String) -> ExaConnectOptionsBuilder
pub fn refresh_token(self, refresh_token: String) -> ExaConnectOptionsBuilder
pub fn schema(self, schema: String) -> ExaConnectOptionsBuilder
pub fn fetch_size(self, fetch_size: usize) -> ExaConnectOptionsBuilder
pub fn query_timeout(self, query_timeout: u64) -> ExaConnectOptionsBuilder
pub fn compression_mode( self, compression_mode: ExaCompressionMode, ) -> ExaConnectOptionsBuilder
pub fn feedback_interval( self, feedback_interval: u64, ) -> ExaConnectOptionsBuilder
Trait Implementations§
Source§impl Clone for ExaConnectOptionsBuilder
impl Clone for ExaConnectOptionsBuilder
Source§fn clone(&self) -> ExaConnectOptionsBuilder
fn clone(&self) -> ExaConnectOptionsBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ExaConnectOptionsBuilder
impl Debug for ExaConnectOptionsBuilder
Source§impl Default for ExaConnectOptionsBuilder
impl Default for ExaConnectOptionsBuilder
Source§fn default() -> ExaConnectOptionsBuilder
fn default() -> ExaConnectOptionsBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ExaConnectOptionsBuilder
impl RefUnwindSafe for ExaConnectOptionsBuilder
impl Send for ExaConnectOptionsBuilder
impl Sync for ExaConnectOptionsBuilder
impl Unpin for ExaConnectOptionsBuilder
impl UnwindSafe for ExaConnectOptionsBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more