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§
Sourcefn into_field_error(self) -> FieldError<S>
fn into_field_error(self) -> FieldError<S>
Performs the custom conversion into a FieldError
.