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
.