pub trait WebErr<T> {
// Required method
fn web_err(self, state: &AppState, req: &RequestState) -> WebResult<T>;
}Expand description
A trait to extend Result and Option with error handling that injects AppState and RequestState.
pub trait WebErr<T> {
// Required method
fn web_err(self, state: &AppState, req: &RequestState) -> WebResult<T>;
}A trait to extend Result and Option with error handling that injects AppState and RequestState.