pub struct IgnisConfigBuilder { /* private fields */ }Expand description
Configuration builder for fluent configuration
Implementations§
Source§impl IgnisConfigBuilder
impl IgnisConfigBuilder
Sourcepub fn database_url(self, url: impl Into<String>) -> Self
pub fn database_url(self, url: impl Into<String>) -> Self
Set database URL
Sourcepub fn max_connections(self, max: u32) -> Self
pub fn max_connections(self, max: u32) -> Self
Set maximum connections
Sourcepub fn min_connections(self, min: u32) -> Self
pub fn min_connections(self, min: u32) -> Self
Set minimum connections
Sourcepub fn transaction_timeout(self, timeout: Duration) -> Self
pub fn transaction_timeout(self, timeout: Duration) -> Self
Set transaction timeout
Sourcepub fn isolation_level(self, level: IsolationLevel) -> Self
pub fn isolation_level(self, level: IsolationLevel) -> Self
Set isolation level
Sourcepub fn enable_query_monitoring(self, enable: bool) -> Self
pub fn enable_query_monitoring(self, enable: bool) -> Self
Enable query monitoring
Sourcepub fn build(self) -> Result<IgnisConfig>
pub fn build(self) -> Result<IgnisConfig>
Build the configuration
Trait Implementations§
Source§impl Debug for IgnisConfigBuilder
impl Debug for IgnisConfigBuilder
Auto Trait Implementations§
impl Freeze for IgnisConfigBuilder
impl RefUnwindSafe for IgnisConfigBuilder
impl Send for IgnisConfigBuilder
impl Sync for IgnisConfigBuilder
impl Unpin for IgnisConfigBuilder
impl UnsafeUnpin for IgnisConfigBuilder
impl UnwindSafe for IgnisConfigBuilder
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
impl<T> ErasedDestructor for Twhere
T: 'static,
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