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)
The profile was not a valid AWS profile
This variant is marked as non-exhaustive
Tuple Fields of CouldNotParseProfile
No profiles existed (the profile was empty)
This variant is marked as non-exhaustive
The profile did not contain any credential information
This variant is marked as non-exhaustive
Fields of ProfileDidNotContainCredentials
profile: String
The name of the profile
The profile contained an infinite loop of source_profile
references
This variant is marked as non-exhaustive
Fields of CredentialLoop
The profile was missing a credential source
This variant is marked as non-exhaustive
Fields of MissingCredentialSource
The profile contained an invalid credential source
This variant is marked as non-exhaustive
Fields of InvalidCredentialSource
The profile referred to a another profile by name that was not defined
This variant is marked as non-exhaustive
Fields of MissingProfile
The profile referred to credential_source
that was not defined
This variant is marked as non-exhaustive
Fields of UnknownProvider
name: String
The name of the provider
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