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> { ... } }

An extension trait for InputValueValidator

Provided methods

fn and<R: InputValueValidator>(self, other: R) -> And<Self, R>[src]

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

fn or<R: InputValueValidator>(self, other: R) -> Or<Self, R>[src]

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

fn map_err<F: Fn(String) -> String>(self, f: F) -> MapErr<Self, F>[src]

Changes the error message

Loading content...

Implementors

Loading content...