pub struct ServiceErrorDetails { /* private fields */ }Expand description
Metadata returned by an AWS service in an error response.
Implementations§
Source§impl ServiceErrorDetails
impl ServiceErrorDetails
Sourcepub fn new(
service: impl Into<Cow<'static, str>>,
operation: impl Into<Cow<'static, str>>,
code: impl Into<String>,
message: impl Into<String>,
http_status: u16,
request_id: Option<String>,
) -> Self
pub fn new( service: impl Into<Cow<'static, str>>, operation: impl Into<Cow<'static, str>>, code: impl Into<String>, message: impl Into<String>, http_status: u16, request_id: Option<String>, ) -> Self
Constructs structured AWS service error details.
Sourcepub fn service(&self) -> &str
pub fn service(&self) -> &str
Returns the AWS service identifier (e.g. "s3", "dynamodb", "ec2").
Sourcepub const fn http_status(&self) -> u16
pub const fn http_status(&self) -> u16
Returns the HTTP status code associated with the service error.
Sourcepub fn request_id(&self) -> Option<&str>
pub fn request_id(&self) -> Option<&str>
Returns the AWS request identifier when provided in headers or body.
Trait Implementations§
Source§impl Clone for ServiceErrorDetails
impl Clone for ServiceErrorDetails
Source§impl Debug for ServiceErrorDetails
impl Debug for ServiceErrorDetails
impl Eq for ServiceErrorDetails
Source§impl PartialEq for ServiceErrorDetails
impl PartialEq for ServiceErrorDetails
impl StructuralPartialEq for ServiceErrorDetails
Auto Trait Implementations§
impl Forget for ServiceErrorDetails
impl Freeze for ServiceErrorDetails
impl Move for ServiceErrorDetails
impl RefUnwindSafe for ServiceErrorDetailswhere
String: RefUnwindSafe,
impl Send for ServiceErrorDetails
impl Sync for ServiceErrorDetails
impl Unpin for ServiceErrorDetails
impl UnsafeUnpin for ServiceErrorDetailswhere
&'static str: UnsafeUnpin,
String: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
impl UnwindSafe for ServiceErrorDetails
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