[−][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 __typename, the interface and union should return the current type, and the others return Type::type_name.
Implementations on Foreign Types
impl<T: Type + Send + Sync, '_> Type for &'_ T[src]
impl<T: Type + Send + Sync> Type for Box<T>[src]
impl<T: Type + Send + Sync> Type for Arc<T>[src]
impl Type for bool[src]
impl Type for DateTime<Utc>[src]
impl Type for f32[src]
impl Type for f64[src]
impl Type for i8[src]
impl Type for i16[src]
impl Type for i32[src]
impl Type for i64[src]
impl Type for u8[src]
impl Type for u16[src]
impl Type for u32[src]
impl Type for u64[src]
impl Type for NaiveDate[src]
impl Type for NaiveTime[src]
impl Type for String[src]
impl<'a> Type for &'a str[src]
impl Type for Uuid[src]
impl Type for ObjectId[src]
impl Type for UtcDateTime[src]
impl Type for Url[src]
impl<T: Type> Type for Vec<T>[src]
fn type_name() -> Cow<'static, str>[src]
fn qualified_type_name() -> String[src]
fn create_type_info(registry: &mut Registry) -> String[src]
impl<'a, T: Type + 'a> Type for &'a [T][src]
fn type_name() -> Cow<'static, str>[src]
fn qualified_type_name() -> String[src]
fn create_type_info(registry: &mut Registry) -> String[src]
impl<T: Type> Type for Option<T>[src]
fn type_name() -> Cow<'static, str>[src]
fn qualified_type_name() -> String[src]
fn create_type_info(registry: &mut Registry) -> String[src]
Implementors
impl Type for EmptyFields[src]
impl Type for PageInfo[src]
impl Type for Any[src]
impl Type for EmptyMutation[src]
impl Type for EmptySubscription[src]
impl Type for ID[src]
impl<'a> Type for Upload[src]
impl<C, T, E> Type for Edge<C, T, E> where
C: CursorType,
T: OutputValueType + Send + Sync,
E: ObjectType + Sync + Send, [src]
C: CursorType,
T: OutputValueType + Send + Sync,
E: ObjectType + Sync + Send,
impl<C, T, EC, EE> Type for Connection<C, T, EC, EE> where
C: CursorType,
T: OutputValueType + Send + Sync,
EC: ObjectType + Sync + Send,
EE: ObjectType + Sync + Send, [src]
C: CursorType,
T: OutputValueType + Send + Sync,
EC: ObjectType + Sync + Send,
EE: ObjectType + Sync + Send,