pub struct ErrorMetadata {
pub status_code: u16,
pub error_type: &'static str,
pub error_code: &'static str,
}Expand description
Metadata for structured error responses.
Fields§
§status_code: u16HTTP status code (e.g., 400, 404, 500)
error_type: &'static strError category for metrics (e.g., “validation”, “storage”)
error_code: &'static strMachine-readable error code for API responses (e.g., “NOT_FOUND”)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ErrorMetadata
impl RefUnwindSafe for ErrorMetadata
impl Send for ErrorMetadata
impl Sync for ErrorMetadata
impl Unpin for ErrorMetadata
impl UnsafeUnpin 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