Enum scratchstack_arn::ArnError
source · [−]pub enum ArnError {
InvalidAccountId(String),
InvalidArn(String),
InvalidPartition(String),
InvalidRegion(String),
InvalidResource(String),
InvalidScheme(String),
InvalidService(String),
}
Expand description
Errors that can be raise during the parsing of ARNs.
Variants
InvalidAccountId(String)
Invalid AWS account id. The argument contains the specified account id.
InvalidArn(String)
Invalid or malformed ARN. The argument contains the specified ARN.
InvalidPartition(String)
Invalid partition. The argument contains the specified partition.
InvalidRegion(String)
Invalid region. The argument contains the specified region.
InvalidResource(String)
Invalid resource. The argument contains the specified resource.
InvalidScheme(String)
Invalid scheme. The scheme must be arn
.
InvalidService(String)
Invalid service. The argument contains the specified service.
Trait Implementations
sourceimpl Error for ArnError
impl Error for ArnError
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
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
impl Eq for ArnError
impl StructuralEq for ArnError
impl StructuralPartialEq for ArnError
Auto Trait Implementations
impl RefUnwindSafe for ArnError
impl Send for ArnError
impl Sync for ArnError
impl Unpin for ArnError
impl UnwindSafe for ArnError
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