Trait async_graphql::InputType [−][src]
pub trait InputType: Type + Send + Sync + Sized {
fn parse(value: Option<Value>) -> InputValueResult<Self>;
fn to_value(&self) -> Value;
}
Expand description
Represents a GraphQL input value.
Required methods
fn parse(value: Option<Value>) -> InputValueResult<Self>
fn parse(value: Option<Value>) -> InputValueResult<Self>
Parse from Value
. None represents undefined.