pub trait ProvideErrorMetadata {
// Required method
fn meta(&self) -> &ErrorMetadata;
// Provided methods
fn code(&self) -> Option<&str> { ... }
fn message(&self) -> Option<&str> { ... }
}
Expand description
Trait to retrieve error metadata from a result
Required Methods§
sourcefn meta(&self) -> &ErrorMetadata
fn meta(&self) -> &ErrorMetadata
Returns error metadata, which includes the error code, message, request ID, and potentially additional information.