Skip to main content

WithStatus

Trait WithStatus 

Source
pub trait WithStatus<T> {
    // Required method
    fn with_status(self, status: StatusCode) -> Result<T, ApiError>;
}

Required Methods§

Source

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".

Implementations on Foreign Types§

Source§

impl<T, RE> WithStatus<T> for Result<T, RE>
where ApiErrorKind: From<RE>,

Implementors§