actix_web_rest/
lib.rs

1pub use http;
2
3pub use actix_web_rest_macros as macros;
4pub use macros::*;
5
6pub trait RestError:
7    std::error::Error + AsRef<str> + serde::ser::Serialize + for<'a> utoipa::ToSchema<'a>
8{
9    fn status_code(&self) -> http::StatusCode;
10}