pub trait ApiResultExt<T, S> {
// Required method
fn into_superset<U>(self) -> Result<T, ApiResponse<U>>
where U: Superset<S>;
}Expand description
Extension trait for Result types with ApiResponse errors, providing a method to convert the error type into a superset error type.
Required Methods§
Sourcefn into_superset<U>(self) -> Result<T, ApiResponse<U>>where
U: Superset<S>,
fn into_superset<U>(self) -> Result<T, ApiResponse<U>>where
U: Superset<S>,
Converts the error type of the Result into a superset error type.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".