pub struct ErrorMetadata { /* private fields */ }
Expand description
Generic Error type
For many services, Errors are modeled. However, many services only partially model errors or don’t
model errors at all. In these cases, the SDK will return this generic error type to expose the
code
, message
and request_id
.
Implementations§
Trait Implementations§
Source§impl Clone for ErrorMetadata
impl Clone for ErrorMetadata
Source§fn clone(&self) -> ErrorMetadata
fn clone(&self) -> ErrorMetadata
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ErrorMetadata
impl Debug for ErrorMetadata
Source§impl Default for ErrorMetadata
impl Default for ErrorMetadata
Source§fn default() -> ErrorMetadata
fn default() -> ErrorMetadata
Returns the “default value” for a type. Read more
Source§impl Display for ErrorMetadata
impl Display for ErrorMetadata
Source§impl Error for ErrorMetadata
impl Error for ErrorMetadata
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 ErrorMetadata
impl PartialEq for ErrorMetadata
Source§impl ProvideErrorKind for ErrorMetadata
impl ProvideErrorKind for ErrorMetadata
Source§impl ProvideErrorMetadata for ErrorMetadata
impl ProvideErrorMetadata for ErrorMetadata
Source§fn meta(&self) -> &ErrorMetadata
fn meta(&self) -> &ErrorMetadata
Returns error metadata, which includes the error code, message,
request ID, and potentially additional information.
Source§impl RequestId for ErrorMetadata
impl RequestId for ErrorMetadata
Source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
Returns the request ID, or
None
if the service could not be reached.impl Eq for ErrorMetadata
impl StructuralPartialEq for ErrorMetadata
Auto Trait Implementations§
impl Freeze for ErrorMetadata
impl RefUnwindSafe for ErrorMetadata
impl Send for ErrorMetadata
impl Sync for ErrorMetadata
impl Unpin for ErrorMetadata
impl UnwindSafe for ErrorMetadata
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Creates a shared type from an unshared type.