Enum aws_config::profile::credentials::ProfileFileError [−][src]
#[non_exhaustive]
pub enum ProfileFileError {
CouldNotParseProfile(ProfileParseError),
NoProfilesDefined,
ProfileDidNotContainCredentials {
profile: String,
},
CredentialLoop {
profiles: Vec<String>,
next: String,
},
MissingCredentialSource {
profile: String,
message: Cow<'static, str>,
},
InvalidCredentialSource {
profile: String,
message: Cow<'static, str>,
},
MissingProfile {
profile: String,
message: Cow<'static, str>,
},
UnknownProvider {
name: String,
},
}
Expand description
An Error building a Credential source from an AWS Profile
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
CouldNotParseProfile(ProfileParseError)
Tuple Fields
This variant is marked as non-exhaustive
The profile was not a valid AWS profile
NoProfilesDefined
No profiles existed (the profile was empty)
ProfileDidNotContainCredentials
Fields
This variant is marked as non-exhaustive
profile: String
The name of the profile
The profile did not contain any credential information
CredentialLoop
Fields
This variant is marked as non-exhaustive
next: String
The next profile that caused the loop
The profile contained an infinite loop of source_profile
references
MissingCredentialSource
Fields
This variant is marked as non-exhaustive
profile: String
The name of the profile
The profile was missing a credential source
InvalidCredentialSource
Fields
This variant is marked as non-exhaustive
profile: String
The name of the profile
The profile contained an invalid credential source
MissingProfile
Fields
This variant is marked as non-exhaustive
profile: String
The name of the profile
The profile referred to a another profile by name that was not defined
UnknownProvider
Fields
This variant is marked as non-exhaustive
name: String
The name of the provider
The profile referred to credential_source
that was not defined
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ProfileFileError
impl Send for ProfileFileError
impl Sync for ProfileFileError
impl Unpin for ProfileFileError
impl UnwindSafe for ProfileFileError
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