Struct oracle::pool::PoolOptions
source · pub struct PoolOptions { /* private fields */ }
Expand description
Additional options to get a connection from a pool
This is used as the argument of Pool::get_with_options
.
Implementations§
source§impl PoolOptions
impl PoolOptions
pub fn new() -> PoolOptions
pub fn username<S>(self, username: S) -> Selfwhere
S: Into<String>,
pub fn password<S>(self, password: S) -> Selfwhere
S: Into<String>,
pub fn privilege(self, privilege: Privilege) -> Self
pub fn external_auth(self, enable: bool) -> Self
pub fn tag<S>(self, tag: S) -> Selfwhere
S: Into<String>,
pub fn match_any_tag(self, enable: bool) -> Self
pub fn purity(self, purity: Purity) -> Self
pub fn connection_class<S>(self, connection_class: S) -> Selfwhere
S: Into<String>,
Trait Implementations§
source§impl Clone for PoolOptions
impl Clone for PoolOptions
source§fn clone(&self) -> PoolOptions
fn clone(&self) -> PoolOptions
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 PoolOptions
impl Debug for PoolOptions
source§impl PartialEq<PoolOptions> for PoolOptions
impl PartialEq<PoolOptions> for PoolOptions
source§fn eq(&self, other: &PoolOptions) -> bool
fn eq(&self, other: &PoolOptions) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.