Struct aws_config::ConfigLoader [−][src]
pub struct ConfigLoader { /* fields omitted */ }
Expand description
Load a cross-service Config
from the environment
This builder supports overriding individual components of the generated config. Overriding a component will skip the standard resolution chain from for that component. For example, if you override the region provider, even if that provider returns None, the default region provider chain will not be used.
Implementations
pub fn credentials_provider(
self,
credentials_provider: impl ProvideCredentials + 'static
) -> Self
pub fn credentials_provider(
self,
credentials_provider: impl ProvideCredentials + 'static
) -> Self
Load the default configuration chain
If fields have been overridden during builder construction, the override values will be used.
Otherwise, the default values for each field will be provided.
NOTE: When an override is provided, the default implementation is not used as a fallback.
This means that if you provide a region provider that does not return a region, no region will
be set in the resulting Config
Trait Implementations
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl !RefUnwindSafe for ConfigLoader
impl Send for ConfigLoader
impl Sync for ConfigLoader
impl Unpin for ConfigLoader
impl !UnwindSafe for ConfigLoader
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more