pub trait InputType: Send + Sync + Sized {
    type RawValueType;
    fn type_name() -> Cow<'static, str>;
fn create_type_info(registry: &mut Registry) -> String;
fn parse(value: Option<Value>) -> InputValueResult<Self>;
fn to_value(&self) -> Value;
fn as_raw_value(&self) -> Option<&Self::RawValueType>; fn qualified_type_name() -> String { ... } }
Expand description

Represents a GraphQL input type.

Associated Types

The raw type used for validator.

Usually it is Self, but the wrapper type is its internal type.

For example:

i32::RawValueType is i32 Option<i32>::RawValueType is i32.

Required methods

Type the name.

Create type information in the registry and return qualified typename.

Parse from Value. None represents undefined.

Convert to a Value for introspection.

Returns a reference to the raw value.

Provided methods

Qualified typename.

Implementations on Foreign Types

Implementors