pub trait AsApiErrorTrait {
// Required method
fn as_api_error(&self) -> ApiError;
}Expand description
A trait for types that can be converted into an ApiError.
Required Methods§
Sourcefn as_api_error(&self) -> ApiError
fn as_api_error(&self) -> ApiError
Converts the type into an ApiError.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".