pub trait WithStatus<T> {
// Required method
fn with_status(self, status: StatusCode) -> Result<T, ApiError>;
}Required Methods§
fn with_status(self, status: StatusCode) -> Result<T, ApiError>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".