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
fn and<R: InputValueValidator>(self, other: R) -> And<Self, R>
fn and<R: InputValueValidator>(self, other: R) -> And<Self, R>
Merge the two validators and return None only if both validators are successful.
fn or<R: InputValueValidator>(self, other: R) -> Or<Self, R>
fn or<R: InputValueValidator>(self, other: R) -> Or<Self, R>
Merge two validators, and return None when either validator verifies successfully.