pub enum ArnError {
InvalidPrefix,
InvalidFormat,
InvalidPartition(String),
InvalidService(String),
InvalidAccountId(String),
InvalidResource(String),
}
Expand description
Error types for ARN parsing and validation
Variants§
InvalidPrefix
ARN doesn’t start with “arn:”
InvalidFormat
ARN has incorrect number of components
InvalidPartition(String)
Partition is empty or invalid
InvalidService(String)
Service is empty or invalid
InvalidAccountId(String)
Account ID format is invalid (should be 12 digits or empty)
InvalidResource(String)
Resource format is invalid
Trait Implementations§
Source§impl Error for ArnError
impl Error for ArnError
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()
impl Eq for ArnError
impl StructuralPartialEq for ArnError
Auto Trait Implementations§
impl Freeze for ArnError
impl RefUnwindSafe for ArnError
impl Send for ArnError
impl Sync for ArnError
impl Unpin for ArnError
impl UnwindSafe for ArnError
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