Enum aws_config::profile::credentials::ProfileFileError
source · [−]#[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,
},
CouldNotReadProfileFile(CouldNotReadProfileFile),
}
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.
CouldNotParseProfile(ProfileParseError)
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.
profile: String
The name of the profile
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.
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
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.
profile: String
The name of the profile
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.
profile: String
The name of the profile
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.
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
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.
name: String
The name of the provider
The profile referred to credential_source
that was not defined
CouldNotReadProfileFile(CouldNotReadProfileFile)
A custom profile file location didn’t exist or could not be read
Trait Implementations
sourceimpl Debug for ProfileFileError
impl Debug for ProfileFileError
sourceimpl Display for ProfileFileError
impl Display for ProfileFileError
sourceimpl Error for ProfileFileError
impl Error for ProfileFileError
sourcefn 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 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
sourceimpl From<ProfileParseError> for ProfileFileError
impl From<ProfileParseError> for ProfileFileError
sourcefn from(err: ProfileParseError) -> Self
fn from(err: ProfileParseError) -> Self
Converts to this type from the input type.
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more