Trait AsApiErrorTrait

Source
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§

Source

fn as_api_error(&self) -> ApiError

Converts the type into an ApiError.

Implementors§