pub struct Configuration { /* private fields */ }Expand description
The effective configuration of one invocation.
Implementations§
Source§impl Configuration
impl Configuration
Sourcepub const fn repository_url(&self) -> Option<&Resolved<Secret>>
pub const fn repository_url(&self) -> Option<&Resolved<Secret>>
Borrows the repository connection secret, when one was supplied.
Sourcepub const fn ca_certificate(&self) -> Option<&Resolved<Secret>>
pub const fn ca_certificate(&self) -> Option<&Resolved<Secret>>
Borrows the PEM certificate-authority bundle, when one was supplied.
Sourcepub const fn tls_mode(&self) -> TlsSetting
pub const fn tls_mode(&self) -> TlsSetting
Returns the selected transport security.
Sourcepub const fn connect_timeout(&self) -> Duration
pub const fn connect_timeout(&self) -> Duration
Returns the validated connection establishment timeout.
Sourcepub const fn statement_timeout(&self) -> Duration
pub const fn statement_timeout(&self) -> Duration
Returns the validated server-side statement timeout.
Sourcepub const fn output(&self) -> OutputForm
pub const fn output(&self) -> OutputForm
Returns the effective output form.
Sourcepub const fn client_timeout(&self) -> Duration
pub const fn client_timeout(&self) -> Duration
Returns the effective client deadline.
Sourcepub fn effective(&self) -> Vec<EffectiveValue>
pub fn effective(&self) -> Vec<EffectiveValue>
Returns every effective value with its source and redaction status.
The value column of a secret-bearing key is always the redaction marker, never the value.
Trait Implementations§
Source§impl Clone for Configuration
impl Clone for Configuration
Source§fn clone(&self) -> Configuration
fn clone(&self) -> Configuration
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for Configuration
impl RefUnwindSafe for Configuration
impl Send for Configuration
impl Sync for Configuration
impl Unpin for Configuration
impl UnsafeUnpin for Configuration
impl UnwindSafe for Configuration
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