[−][src]Trait async_graphql::Type
Represents a GraphQL type
All GraphQL types implement this trait, such as Scalar
, Object
, Union
...
Required methods
fn type_name() -> Cow<'static, str>
Type the name.
fn create_type_info(registry: &mut Registry) -> String
Create type information in the registry and return qualified typename.
Provided methods
fn qualified_type_name() -> String
Qualified typename.
fn introspection_type_name(&self) -> Cow<'static, str>
Introspection type name
Is the return value of field __type
, the interface and union should return the current type, and the others return Type::type_name
.
fn global_id(id: ID) -> ID
Returns a GlobalID
that is unique among all types.
fn from_global_id(id: ID) -> Option<ID>
Parse GlobalID
.