Struct aws_config::profile::app_name::ProfileFileAppNameProvider [−][src]
pub struct ProfileFileAppNameProvider { /* fields omitted */ }
Expand description
Loads an app name from a profile file
This provider will attempt to shared AWS shared configuration and then read the
sdk-ua-app-id
property from the active profile.
Examples
Loads “my-app” as the app name
[default]
sdk-ua-app-id = my-app
Loads “my-app” as the app name if and only if the AWS_PROFILE
environment variable
is set to other
.
[profile other]
sdk-ua-app-id = my-app
This provider is part of the default app name provider chain.
Implementations
Create a new [ProfileFileAppNameProvider}
To override the selected profile, set the AWS_PROFILE
environment variable or use the Builder
.
Builder
to construct a ProfileFileAppNameProvider
Trait Implementations
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for ProfileFileAppNameProvider
impl Send for ProfileFileAppNameProvider
impl Sync for ProfileFileAppNameProvider
impl Unpin for ProfileFileAppNameProvider
impl UnwindSafe for ProfileFileAppNameProvider
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