Struct salvo_core::http::HttpError [−][src]
pub struct HttpError {
pub code: StatusCode,
pub name: String,
pub summary: Option<String>,
pub detail: Option<String>,
}
Expand description
HttpError contains http error information.
Fields
code: StatusCode
Http error status code.
name: String
Http error name.
summary: Option<String>
Summary information about http error.
detail: Option<String>
Detail information about http error.
Implementations
Set summary field and return Self.
Set detail field and return Self.
Trait Implementations
Write data to Respone
.
Auto Trait Implementations
impl RefUnwindSafe for HttpError
impl UnwindSafe for HttpError
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more