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,
},
}
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
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
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
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more