pub struct HttpErrorResponse {
pub status: StatusCode,
pub body: HttpErrorBody,
pub headers: HeaderMap,
}Expand description
Complete serializer-neutral HTTP error response.
Fields§
§status: StatusCodeHTTP status selected for the error.
body: HttpErrorBodySafe body serialized by a framework or contract adapter.
headers: HeaderMapOptional headers such as Retry-After or WWW-Authenticate.
Trait Implementations§
Source§impl Clone for HttpErrorResponse
impl Clone for HttpErrorResponse
Source§fn clone(&self) -> HttpErrorResponse
fn clone(&self) -> HttpErrorResponse
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 HttpErrorResponse
impl RefUnwindSafe for HttpErrorResponse
impl Send for HttpErrorResponse
impl Sync for HttpErrorResponse
impl Unpin for HttpErrorResponse
impl UnsafeUnpin for HttpErrorResponse
impl UnwindSafe for HttpErrorResponse
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