pub struct DatabaseConfig {
pub name: String,
pub connect: ConnectConfig,
pub auth: AuthPolicy,
pub max_connections: usize,
pub statement_timeout_ms: u64,
pub lock_timeout_ms: u64,
pub tls: Option<Arc<ClientConfig>>,
pub tls_sources: TlsSources,
}Fields§
§name: String§connect: ConnectConfig§auth: AuthPolicyAuthentication methods the server may use, from require_auth.
max_connections: usize§statement_timeout_ms: u64§lock_timeout_ms: u64§tls: Option<Arc<ClientConfig>>TLS configuration built by Config::prepare_tls; None until then or when sslmode is disable.
tls_sources: TlsSourcesThe root and client certificate settings that prepare_tls reads; inline PEM stays redacted in Debug.
Trait Implementations§
Source§impl Clone for DatabaseConfig
impl Clone for DatabaseConfig
Auto Trait Implementations§
impl !RefUnwindSafe for DatabaseConfig
impl !UnwindSafe for DatabaseConfig
impl Forget for DatabaseConfig
impl Freeze for DatabaseConfig
impl Move for DatabaseConfig
impl Send for DatabaseConfig
impl Sync for DatabaseConfig
impl Unpin for DatabaseConfig
impl UnsafeUnpin for DatabaseConfig
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,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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