Trait async_graphql::Type [−][src]
pub trait Type {
fn type_name() -> Cow<'static, str>;
fn create_type_info(registry: &mut Registry) -> String;
fn qualified_type_name() -> String { ... }
fn introspection_type_name(&self) -> Cow<'static, str> { ... }
}Expand description
Represents a GraphQL type.
All GraphQL types implement this trait, such as Scalar, Object, Union …
Required methods
fn type_name() -> Cow<'static, str>[src]
Expand description
Type the name.
fn create_type_info(registry: &mut Registry) -> String[src]
Expand description
Create type information in the registry and return qualified typename.
Provided methods
fn qualified_type_name() -> String[src]
Expand description
Qualified typename.
fn introspection_type_name(&self) -> Cow<'static, str>[src]
Expand description
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> Type for BTreeSet<T>[src]
impl<T: Type> Type for BTreeSet<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 HashSet<T>[src]
impl<T: Type> Type for HashSet<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 LinkedList<T>[src]
impl<T: Type> Type for LinkedList<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]
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 Vec<T>[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<T: Type> Type for VecDeque<T>[src]
impl<T: Type> Type for VecDeque<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 Type for NonZeroI16[src]
impl Type for NonZeroI16[src]impl Type for NonZeroI32[src]
impl Type for NonZeroI32[src]impl Type for NonZeroI64[src]
impl Type for NonZeroI64[src]impl Type for NonZeroU16[src]
impl Type for NonZeroU16[src]impl Type for NonZeroU32[src]
impl Type for NonZeroU32[src]impl Type for NonZeroU64[src]
impl Type for NonZeroU64[src]impl<T: Type> Type for Option<T>[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]
impl Type for UtcDateTime[src]
impl Type for UtcDateTime[src]impl Type for DateTime<FixedOffset>[src]
impl Type for DateTime<FixedOffset>[src]impl Type for NaiveDateTime[src]
impl Type for NaiveDateTime[src]impl<T: Type + Zeroize> Type for Secret<T>[src]
impl<T: Type + Zeroize> Type for Secret<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 EmptyFields[src]impl Type for EmptyMutation[src]
impl Type for EmptyMutation[src]impl Type for EmptySubscription[src]
impl Type for EmptySubscription[src]impl<C, T, E> Type for Edge<C, T, E> where
C: CursorType,
T: OutputType,
E: ObjectType, [src]
impl<C, T, E> Type for Edge<C, T, E> where
C: CursorType,
T: OutputType,
E: ObjectType, [src]impl<C, T, EC, EE> Type for Connection<C, T, EC, EE> where
C: CursorType,
T: OutputType,
EC: ObjectType,
EE: ObjectType, [src]
impl<C, T, EC, EE> Type for Connection<C, T, EC, EE> where
C: CursorType,
T: OutputType,
EC: ObjectType,
EE: ObjectType, [src]impl<T> Type for OutputJson<T>[src]
impl<T> Type for OutputJson<T>[src]impl<T: Num + Display + Send + Sync> Type for StringNumber<T> where
<T as Num>::FromStrRadixErr: Display, [src]
impl<T: Num + Display + Send + Sync> Type for StringNumber<T> where
<T as Num>::FromStrRadixErr: Display, [src]impl<T: Type> Type for MaybeUndefined<T>[src]
impl<T: Type> Type for MaybeUndefined<T>[src]