Struct sqlx_exasol::ExaConnectOptionsBuilder
source · pub struct ExaConnectOptionsBuilder { /* private fields */ }Expand description
Builder for ExaConnectOptions.
Implementations§
source§impl ExaConnectOptionsBuilder
impl ExaConnectOptionsBuilder
sourcepub fn build(self) -> Result<ExaConnectOptions, SqlxError>
pub fn build(self) -> Result<ExaConnectOptions, SqlxError>
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 copy 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 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