#[non_exhaustive]pub struct LoadClientConfigProfileOptions {
pub config_source: Option<DataSource>,
pub config_file_profile: Option<String>,
pub config_file_strict: bool,
pub disable_file: bool,
pub disable_env: bool,
}Expand description
Options for loading a client configuration profile
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.config_source: Option<DataSource>Where to load config from. If unset, will try env vars then default path.
config_file_profile: Option<String>Specific profile to use
config_file_strict: boolIf true, will error if there are unrecognized keys.
disable_file: boolDisable loading from file
disable_env: boolDisable loading from environment variables
Implementations§
Source§impl LoadClientConfigProfileOptions
impl LoadClientConfigProfileOptions
Sourcepub fn builder() -> LoadClientConfigProfileOptionsBuilder
pub fn builder() -> LoadClientConfigProfileOptionsBuilder
Create an instance of LoadClientConfigProfileOptions using the builder syntax
Trait Implementations§
Source§impl Default for LoadClientConfigProfileOptions
impl Default for LoadClientConfigProfileOptions
Source§fn default() -> LoadClientConfigProfileOptions
fn default() -> LoadClientConfigProfileOptions
Returns the “default value” for a type. Read more
impl StructuralPartialEq for LoadClientConfigProfileOptions
Auto Trait Implementations§
impl Freeze for LoadClientConfigProfileOptions
impl RefUnwindSafe for LoadClientConfigProfileOptions
impl Send for LoadClientConfigProfileOptions
impl Sync for LoadClientConfigProfileOptions
impl Unpin for LoadClientConfigProfileOptions
impl UnsafeUnpin for LoadClientConfigProfileOptions
impl UnwindSafe for LoadClientConfigProfileOptions
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> 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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request