Enum aws_config::profile::credentials::ProfileFileError
source · #[non_exhaustive]
pub enum ProfileFileError {
InvalidProfile(ProfileFileLoadError),
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
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
InvalidProfile(ProfileFileLoadError)
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
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
The profile did not contain any credential information
CredentialLoop
Fields
This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
The profile contained an infinite loop of source_profile
references
MissingCredentialSource
Fields
This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
The profile was missing a credential source
InvalidCredentialSource
Fields
This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
The profile contained an invalid credential source
MissingProfile
Fields
This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
The profile referred to a another profile by name that was not defined
UnknownProvider
Fields
This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
The profile referred to credential_source
that was not defined
Trait Implementations§
source§impl Debug for ProfileFileError
impl Debug for ProfileFileError
source§impl Display for ProfileFileError
impl Display for ProfileFileError
source§impl Error for ProfileFileError
impl Error for ProfileFileError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()