pub trait IntoFieldError<S = DefaultScalarValue> {
    // Required method
    fn into_field_error(self) -> FieldError<S>;
}
Expand description

Custom error handling trait to enable error types other than FieldError to be specified as return value.

Any custom error type should implement this trait to convert itself into a FieldError.

Required Methods§

source

fn into_field_error(self) -> FieldError<S>

Performs the custom conversion into a FieldError.

Implementations on Foreign Types§

source§

impl<'a, S> IntoFieldError<S> for &'a str

source§

impl<'a, S> IntoFieldError<S> for Cow<'a, str>

source§

impl<S> IntoFieldError<S> for Infallible

source§

impl<S> IntoFieldError<S> for String

source§

impl<S: ScalarValue> IntoFieldError<S> for Error

Implementors§