pub enum Error {
Show 18 variants
TooShort,
TooLong,
TooFewComponents,
InvalidIdentifier(String),
MissingPrefix,
MissingPartition,
InvalidPartition,
MissingService,
InvalidService,
MissingRegion,
InvalidRegion,
RegionWildcardNotAllowed,
MissingAccountId,
InvalidAccountId(String),
AccountIdWildcardNotAllowed,
MissingResource,
InvalidResource(String),
ResourceWildcardNotAllowed,
}
Expand description
Errors that may arise parsing an ResourceName with FromStr::from_str()
.
Variants
TooShort
String length must be greater than 8 corresponding to "arn:::::"
.
TooLong
String length must be under 2048 characters..
TooFewComponents
Need at least 6 components.
InvalidIdentifier(String)
Invalid Identifier
string value.
MissingPrefix
Missing the ‘arn’ prefix string.
MissingPartition
Missing the partition component.
InvalidPartition
The partition component provided is not valid.
MissingService
Missing the service component.
InvalidService
The service component provided is not valid.
MissingRegion
Missing the region component.
InvalidRegion
The partition region provided is not valid.
RegionWildcardNotAllowed
The particular resource type does not allow region wildcards.
MissingAccountId
Missing the account id component.
InvalidAccountId(String)
The partition account id provided is not valid.
AccountIdWildcardNotAllowed
The particular resource type does not allow account wildcards.
MissingResource
Missing the resource component.
InvalidResource(String)
The partition resource provided is not valid, the name of the particular component in error is included.
ResourceWildcardNotAllowed
The particular resource type does not allow resource wildcards.
Trait Implementations
sourceimpl Error for Error
impl Error for Error
1.30.0 · 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()
impl StructuralPartialEq for Error
Auto Trait Implementations
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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