Trait async_graphql::InputType [−][src]
pub trait InputType: Send + Sync + Sized {
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 qualified_type_name() -> String { ... }
}
Expand description
Represents a GraphQL input type.
Required methods
fn create_type_info(registry: &mut Registry) -> String
fn create_type_info(registry: &mut Registry) -> String
Create type information in the registry and return qualified typename.
fn parse(value: Option<Value>) -> InputValueResult<Self>
fn parse(value: Option<Value>) -> InputValueResult<Self>
Parse from Value
. None represents undefined.
Provided methods
fn qualified_type_name() -> String
fn qualified_type_name() -> String
Qualified typename.