#[non_exhaustive]pub enum AWSCredentialError {
AccessKeyIDLengthError(String),
AuthHeaderMissingParts(String),
AccountMissingFromAccessKeyId(String),
Base32DecodeError(String),
CredentialComponentMissingParts(String),
DateParseError(String),
}Expand description
Errors when constructing a new AWSCredential
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.
AccessKeyIDLengthError(String)
Provided Access Key ID is invalid
AuthHeaderMissingParts(String)
The Authorization header is missing parts
AccountMissingFromAccessKeyId(String)
Couldn’t extract Account ID from
Base32DecodeError(String)
Decoding Base32 failed
CredentialComponentMissingParts(String)
The credential component of the Authorization header is missing parts
DateParseError(String)
Failed to parse the date, not in %Y%m%d format
Trait Implementations§
Source§impl Debug for AWSCredentialError
impl Debug for AWSCredentialError
Source§impl Display for AWSCredentialError
impl Display for AWSCredentialError
Source§impl Error for AWSCredentialError
impl Error for AWSCredentialError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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()
Source§impl PartialEq for AWSCredentialError
impl PartialEq for AWSCredentialError
impl StructuralPartialEq for AWSCredentialError
Auto Trait Implementations§
impl Freeze for AWSCredentialError
impl RefUnwindSafe for AWSCredentialError
impl Send for AWSCredentialError
impl Sync for AWSCredentialError
impl Unpin for AWSCredentialError
impl UnwindSafe for AWSCredentialError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more