pub struct HttpErrorSummary {
pub kind: HttpKind,
pub status: Option<u16>,
pub message: String,
}Expand description
Summary of an HTTP error for consistent handling.
Fields§
§kind: HttpKindThe classified error kind
status: Option<u16>HTTP status code if available
message: StringHuman-readable error message
Trait Implementations§
Source§impl Clone for HttpErrorSummary
impl Clone for HttpErrorSummary
Source§fn clone(&self) -> HttpErrorSummary
fn clone(&self) -> HttpErrorSummary
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for HttpErrorSummary
impl RefUnwindSafe for HttpErrorSummary
impl Send for HttpErrorSummary
impl Sync for HttpErrorSummary
impl Unpin for HttpErrorSummary
impl UnwindSafe for HttpErrorSummary
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