pub struct ExaConnectOptionsBuilder { /* private fields */ }
Expand description
Builder for ExaConnectOptions
.
Implementations§
Source§impl ExaConnectOptionsBuilder
impl ExaConnectOptionsBuilder
Sourcepub fn build(self) -> Result<ExaConnectOptions>
pub fn build(self) -> Result<ExaConnectOptions>
Consumes this builder and returns an instance of ExaConnectOptions
.
§Errors
Will return an error if resolving the hostname to std::net::SocketAddr
fails.
pub fn host(self, host: String) -> Self
pub fn port(self, port: u16) -> Self
pub fn ssl_mode(self, ssl_mode: ExaSslMode) -> Self
pub fn ssl_ca(self, ssl_ca: CertificateInput) -> Self
pub fn ssl_client_cert(self, ssl_client_cert: CertificateInput) -> Self
pub fn ssl_client_key(self, ssl_client_key: CertificateInput) -> Self
pub fn statement_cache_capacity(self, capacity: NonZeroUsize) -> Self
pub fn username(self, username: String) -> Self
pub fn password(self, password: String) -> Self
pub fn access_token(self, access_token: String) -> Self
pub fn refresh_token(self, refresh_token: String) -> Self
pub fn schema(self, schema: String) -> Self
pub fn protocol_version(self, protocol_version: ProtocolVersion) -> Self
pub fn fetch_size(self, fetch_size: usize) -> Self
pub fn query_timeout(self, query_timeout: u64) -> Self
pub fn compression(self, compression: bool) -> Self
pub fn feedback_interval(self, feedback_interval: u8) -> Self
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
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