pub struct HttpErrorInfo {
pub status: u16,
pub detail: String,
pub code: Option<String>,
pub path: Option<String>,
pub method: Option<String>,
}Expand description
HTTP error information.
Fields§
§status: u16HTTP status code.
detail: StringError detail message.
code: Option<String>Optional error code.
path: Option<String>Request path (for context).
method: Option<String>Request method (for context).
Implementations§
Source§impl HttpErrorInfo
impl HttpErrorInfo
Sourcepub fn status_category(&self) -> &'static str
pub fn status_category(&self) -> &'static str
Get the status category name.
Trait Implementations§
Source§impl Clone for HttpErrorInfo
impl Clone for HttpErrorInfo
Source§fn clone(&self) -> HttpErrorInfo
fn clone(&self) -> HttpErrorInfo
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 HttpErrorInfo
impl RefUnwindSafe for HttpErrorInfo
impl Send for HttpErrorInfo
impl Sync for HttpErrorInfo
impl Unpin for HttpErrorInfo
impl UnsafeUnpin for HttpErrorInfo
impl UnwindSafe for HttpErrorInfo
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