[−][src]Trait async_graphql::Type
Represents a GraphQL type.
All GraphQL types implement this trait, such as Scalar
, Object
, Union
...
Required methods
pub fn type_name() -> Cow<'static, str>
[src]
Type the name.
pub fn create_type_info(registry: &mut Registry) -> String
[src]
Create type information in the registry and return qualified typename.
Provided methods
pub fn qualified_type_name() -> String
[src]
Qualified typename.
pub fn introspection_type_name(&self) -> Cow<'static, str>
[src]
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 + ?Sized> Type for &T
[src]
pub fn type_name() -> Cow<'static, str>
[src]
pub fn create_type_info(registry: &mut Registry) -> String
[src]
impl<T: Type + ?Sized> Type for Box<T>
[src]
pub fn type_name() -> Cow<'static, str>
[src]
pub fn create_type_info(registry: &mut Registry) -> String
[src]
impl<T: Type + ?Sized> Type for Arc<T>
[src]
pub fn type_name() -> Cow<'static, str>
[src]
pub fn create_type_info(registry: &mut Registry) -> String
[src]
impl Type for bool
[src]
pub fn type_name() -> Cow<'static, str>
[src]
pub fn create_type_info(registry: &mut Registry) -> String
[src]
impl Type for char
[src]
pub fn type_name() -> Cow<'static, str>
[src]
pub fn create_type_info(registry: &mut Registry) -> String
[src]
impl<'a, T: ?Sized> Type for Cow<'a, T> where
T: Type + ToOwned + Send + Sync,
[src]
T: Type + ToOwned + Send + Sync,
pub fn type_name() -> Cow<'static, str>
[src]
pub fn create_type_info(registry: &mut Registry) -> String
[src]
impl Type for f32
[src]
pub fn type_name() -> Cow<'static, str>
[src]
pub fn create_type_info(registry: &mut Registry) -> String
[src]
impl Type for f64
[src]
pub fn type_name() -> Cow<'static, str>
[src]
pub fn create_type_info(registry: &mut Registry) -> String
[src]
impl Type for i8
[src]
pub fn type_name() -> Cow<'static, str>
[src]
pub fn create_type_info(registry: &mut Registry) -> String
[src]
impl Type for i16
[src]
pub fn type_name() -> Cow<'static, str>
[src]
pub fn create_type_info(registry: &mut Registry) -> String
[src]
impl Type for i32
[src]
pub fn type_name() -> Cow<'static, str>
[src]
pub fn create_type_info(registry: &mut Registry) -> String
[src]
impl Type for i64
[src]
pub fn type_name() -> Cow<'static, str>
[src]
pub fn create_type_info(registry: &mut Registry) -> String
[src]
impl Type for u8
[src]
pub fn type_name() -> Cow<'static, str>
[src]
pub fn create_type_info(registry: &mut Registry) -> String
[src]
impl Type for u16
[src]
pub fn type_name() -> Cow<'static, str>
[src]
pub fn create_type_info(registry: &mut Registry) -> String
[src]
impl Type for u32
[src]
pub fn type_name() -> Cow<'static, str>
[src]
pub fn create_type_info(registry: &mut Registry) -> String
[src]
impl Type for u64
[src]
pub fn type_name() -> Cow<'static, str>
[src]
pub fn create_type_info(registry: &mut Registry) -> String
[src]
impl Type for usize
[src]
pub fn type_name() -> Cow<'static, str>
[src]
pub fn create_type_info(registry: &mut Registry) -> String
[src]
impl Type for isize
[src]
pub fn type_name() -> Cow<'static, str>
[src]
pub fn create_type_info(registry: &mut Registry) -> String
[src]
impl<T> Type for BTreeMap<String, T> where
T: OutputType + InputType,
[src]
T: OutputType + InputType,
pub fn type_name() -> Cow<'static, str>
[src]
pub fn create_type_info(registry: &mut Registry) -> String
[src]
impl<T> Type for HashMap<String, T> where
T: OutputType + InputType,
[src]
T: OutputType + InputType,
pub fn type_name() -> Cow<'static, str>
[src]
pub fn create_type_info(registry: &mut Registry) -> String
[src]
impl<T: Type> Type for BTreeSet<T>
[src]
pub fn type_name() -> Cow<'static, str>
[src]
pub fn qualified_type_name() -> String
[src]
pub fn create_type_info(registry: &mut Registry) -> String
[src]
impl<T: Type> Type for HashSet<T>
[src]
pub fn type_name() -> Cow<'static, str>
[src]
pub fn qualified_type_name() -> String
[src]
pub fn create_type_info(registry: &mut Registry) -> String
[src]
impl<T: Type> Type for LinkedList<T>
[src]
pub fn type_name() -> Cow<'static, str>
[src]
pub fn qualified_type_name() -> String
[src]
pub fn create_type_info(registry: &mut Registry) -> String
[src]
impl<'a, T: Type + 'a> Type for &'a [T]
[src]
pub fn type_name() -> Cow<'static, str>
[src]
pub fn qualified_type_name() -> String
[src]
pub fn create_type_info(registry: &mut Registry) -> String
[src]
impl<T: Type> Type for Vec<T>
[src]
pub fn type_name() -> Cow<'static, str>
[src]
pub fn qualified_type_name() -> String
[src]
pub fn create_type_info(registry: &mut Registry) -> String
[src]
impl<T: Type> Type for VecDeque<T>
[src]
pub fn type_name() -> Cow<'static, str>
[src]
pub fn qualified_type_name() -> String
[src]
pub fn create_type_info(registry: &mut Registry) -> String
[src]
impl Type for NonZeroI8
[src]
pub fn type_name() -> Cow<'static, str>
[src]
pub fn create_type_info(registry: &mut Registry) -> String
[src]
impl Type for NonZeroI16
[src]
pub fn type_name() -> Cow<'static, str>
[src]
pub fn create_type_info(registry: &mut Registry) -> String
[src]
impl Type for NonZeroI32
[src]
pub fn type_name() -> Cow<'static, str>
[src]
pub fn create_type_info(registry: &mut Registry) -> String
[src]
impl Type for NonZeroI64
[src]
pub fn type_name() -> Cow<'static, str>
[src]
pub fn create_type_info(registry: &mut Registry) -> String
[src]
impl Type for NonZeroU8
[src]
pub fn type_name() -> Cow<'static, str>
[src]
pub fn create_type_info(registry: &mut Registry) -> String
[src]
impl Type for NonZeroU16
[src]
pub fn type_name() -> Cow<'static, str>
[src]
pub fn create_type_info(registry: &mut Registry) -> String
[src]
impl Type for NonZeroU32
[src]
pub fn type_name() -> Cow<'static, str>
[src]
pub fn create_type_info(registry: &mut Registry) -> String
[src]
impl Type for NonZeroU64
[src]
pub fn type_name() -> Cow<'static, str>
[src]
pub fn create_type_info(registry: &mut Registry) -> String
[src]
impl<T: Type> Type for Option<T>
[src]
pub fn type_name() -> Cow<'static, str>
[src]
pub fn qualified_type_name() -> String
[src]
pub fn create_type_info(registry: &mut Registry) -> String
[src]
impl Type for String
[src]
pub fn type_name() -> Cow<'static, str>
[src]
pub fn create_type_info(registry: &mut Registry) -> String
[src]
impl Type for str
[src]
pub fn type_name() -> Cow<'static, str>
[src]
pub fn create_type_info(registry: &mut Registry) -> String
[src]
impl Type for ObjectId
[src]
pub fn type_name() -> Cow<'static, str>
[src]
pub fn create_type_info(registry: &mut Registry) -> String
[src]
impl Type for UtcDateTime
[src]
pub fn type_name() -> Cow<'static, str>
[src]
pub fn create_type_info(registry: &mut Registry) -> String
[src]
impl Type for DateTime<FixedOffset>
[src]
pub fn type_name() -> Cow<'static, str>
[src]
pub fn create_type_info(registry: &mut Registry) -> String
[src]
impl Type for DateTime<Local>
[src]
pub fn type_name() -> Cow<'static, str>
[src]
pub fn create_type_info(registry: &mut Registry) -> String
[src]
impl Type for DateTime<Utc>
[src]
pub fn type_name() -> Cow<'static, str>
[src]
pub fn create_type_info(registry: &mut Registry) -> String
[src]
impl Type for NaiveDate
[src]
pub fn type_name() -> Cow<'static, str>
[src]
pub fn create_type_info(registry: &mut Registry) -> String
[src]
impl Type for NaiveTime
[src]
pub fn type_name() -> Cow<'static, str>
[src]
pub fn create_type_info(registry: &mut Registry) -> String
[src]
impl Type for NaiveDateTime
[src]
pub fn type_name() -> Cow<'static, str>
[src]
pub fn create_type_info(registry: &mut Registry) -> String
[src]
impl Type for Url
[src]
pub fn type_name() -> Cow<'static, str>
[src]
pub fn create_type_info(registry: &mut Registry) -> String
[src]
impl Type for Uuid
[src]
pub fn type_name() -> Cow<'static, str>
[src]
pub fn create_type_info(registry: &mut Registry) -> String
[src]
Implementors
impl Type for EmptyFields
[src]
pub fn type_name() -> Cow<'static, str>
[src]
pub fn create_type_info(registry: &mut Registry) -> String
[src]
impl Type for PageInfo
[src]
pub fn type_name() -> Cow<'static, str>
[src]
pub fn create_type_info(registry: &mut Registry) -> String
[src]
impl Type for Any
[src]
pub fn type_name() -> Cow<'static, str>
[src]
pub fn create_type_info(registry: &mut Registry) -> String
[src]
impl Type for EmptyMutation
[src]
pub fn type_name() -> Cow<'static, str>
[src]
pub fn create_type_info(registry: &mut Registry) -> String
[src]
impl Type for EmptySubscription
[src]
pub fn type_name() -> Cow<'static, str>
[src]
pub fn create_type_info(registry: &mut Registry) -> String
[src]
impl Type for ID
[src]
pub fn type_name() -> Cow<'static, str>
[src]
pub fn create_type_info(registry: &mut Registry) -> String
[src]
impl Type for Upload
[src]
pub fn type_name() -> Cow<'static, str>
[src]
pub fn create_type_info(registry: &mut Registry) -> String
[src]
impl<C, T, E> Type for Edge<C, T, E> where
C: CursorType,
T: OutputType,
E: ObjectType,
[src]
C: CursorType,
T: OutputType,
E: ObjectType,
pub fn type_name() -> Cow<'static, str>
[src]
pub fn create_type_info(registry: &mut Registry) -> String
[src]
impl<C, T, EC, EE> Type for Connection<C, T, EC, EE> where
C: CursorType,
T: OutputType,
EC: ObjectType,
EE: ObjectType,
[src]
C: CursorType,
T: OutputType,
EC: ObjectType,
EE: ObjectType,
pub fn type_name() -> Cow<'static, str>
[src]
pub fn create_type_info(registry: &mut Registry) -> String
[src]
impl<T> Type for OutputJson<T>
[src]
pub fn type_name() -> Cow<'static, str>
[src]
pub fn create_type_info(registry: &mut Registry) -> String
[src]
impl<T: Type> Type for MaybeUndefined<T>
[src]
pub fn type_name() -> Cow<'static, str>
[src]
pub fn qualified_type_name() -> String
[src]
pub fn create_type_info(registry: &mut Registry) -> String
[src]
impl<T: Type> Type for Result<T>
[src]
pub fn type_name() -> Cow<'static, str>
[src]
pub fn qualified_type_name() -> String
[src]
pub fn create_type_info(registry: &mut Registry) -> String
[src]
impl<T: Num + Display + Send + Sync> Type for StringNumber<T> where
<T as Num>::FromStrRadixErr: Display,
[src]
<T as Num>::FromStrRadixErr: Display,