Trait async_graphql::validators::InputValueValidatorExt[][src]

pub trait InputValueValidatorExt: InputValueValidator + Sized {
    fn and<R: InputValueValidator>(self, other: R) -> And<Self, R> { ... }
fn or<R: InputValueValidator>(self, other: R) -> Or<Self, R> { ... }
fn map_err<F: Fn(String) -> String>(self, f: F) -> MapErr<Self, F> { ... }
fn map_err_ext<F: Fn(Error) -> Error>(self, f: F) -> MapErrExt<Self, F> { ... } }
Expand description

An extension trait for InputValueValidator

Provided methods

Merge the two validators and return None only if both validators are successful.

Merge two validators, and return None when either validator verifies successfully.

Changes the error message

Changes the error struct

Implementors