Struct mailpot_web::ResponseError
source · pub struct ResponseError {
pub inner: Box<dyn Error>,
pub status: StatusCode,
}
Fields§
§inner: Box<dyn Error>
§status: StatusCode
Implementations§
source§impl ResponseError
impl ResponseError
pub fn new(msg: String, status: StatusCode) -> Self
Trait Implementations§
source§impl Debug for ResponseError
impl Debug for ResponseError
source§impl Display for ResponseError
impl Display for ResponseError
source§impl IntoResponse for ResponseError
impl IntoResponse for ResponseError
source§fn into_response(self) -> Response
fn into_response(self) -> Response
Create a response.