pub struct ErrorResponse {
pub status: StatusCode,
pub headers: HashMap<String, String>,
pub body: String,
}Expand description
Non-success HTTP response details for service-specific error mapping.
Fields§
§status: StatusCodeResponse status code.
headers: HashMap<String, String>Raw response headers.
Header names are case-insensitive; use ErrorResponse::header for lookups.
body: StringResponse body as UTF-8 text, or a diagnostic marker for non-UTF-8 bodies.
Implementations§
Trait Implementations§
Source§impl Clone for ErrorResponse
impl Clone for ErrorResponse
Source§fn clone(&self) -> ErrorResponse
fn clone(&self) -> ErrorResponse
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ErrorResponse
impl RefUnwindSafe for ErrorResponse
impl Send for ErrorResponse
impl Sync for ErrorResponse
impl Unpin for ErrorResponse
impl UnsafeUnpin for ErrorResponse
impl UnwindSafe for ErrorResponse
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