Enum juniper::TypeKind [−][src]
pub enum TypeKind { Scalar, Object, Interface, Union, Enum, InputObject, List, NonNull, }
Expand description
GraphQL type kind
The GraphQL specification defines a number of type kinds - the meta type
of a type.
Variants
Expand description
Scalar types
Scalar types appear as the leaf nodes of GraphQL queries. Strings,
numbers, and booleans are the built in types, and while it’s possible
to define your own, it’s relatively uncommon.
Expand description
Object types
The most common type to be implemented by users. Objects have fields
and can implement interfaces.
Expand description
Interface types
Interface types are used to represent overlapping fields between
multiple types, and can be queried for their concrete type.
Expand description
Union types
Unions are similar to interfaces but can not contain any fields on
their own.
Expand description
Enum types
Like scalars, enum types appear as the leaf nodes of GraphQL queries.
Expand description
Input objects
Represents complex values provided in queries into the system.
Expand description
List types
Represent lists of other types. This library provides implementations
for vectors and slices, but other Rust types can be extended to serve
as GraphQL lists.
Expand description
Non-null types
In GraphQL, nullable types are the default. By putting a !
after a
type, it becomes non-nullable.
Trait Implementations
impl<__S> FromInputValue<__S> for TypeKind where
__S: ScalarValue,
[src]
impl<__S> FromInputValue<__S> for TypeKind where
__S: ScalarValue,
[src]fn from_input_value(v: &InputValue<__S>) -> Option<TypeKind>
[src]
fn from_input_value(v: &InputValue<__S>) -> Option<TypeKind>
[src]Performs the conversion.
fn from_implicit_null() -> Self
[src]
fn from_implicit_null() -> Self
[src]Performs the conversion from an absent value (e.g. to distinguish between implicit and
explicit null). The default implementation just uses from_input_value
as if an explicit
null were provided. This conversion must not fail. Read more
impl<__S> GraphQLType<__S> for TypeKind where
__S: ScalarValue,
[src]
impl<__S> GraphQLType<__S> for TypeKind where
__S: ScalarValue,
[src]impl<__S> GraphQLValue<__S> for TypeKind where
__S: ScalarValue,
[src]
impl<__S> GraphQLValue<__S> for TypeKind where
__S: ScalarValue,
[src]type Context = ()
type Context = ()
Context type for this GraphQLValue
. Read more
type TypeInfo = ()
type TypeInfo = ()
Type that may carry additional schema information for this GraphQLValue
. Read more
fn type_name<'__i>(&self, info: &'__i Self::TypeInfo) -> Option<&'__i str>
[src]
fn type_name<'__i>(&self, info: &'__i Self::TypeInfo) -> Option<&'__i str>
[src]Returns name of the GraphQLType
exposed by this GraphQLValue
. Read more
fn resolve(
&self,
_: &(),
_: Option<&[Selection<'_, __S>]>,
_: &Executor<'_, '_, Self::Context, __S>
) -> ExecutionResult<__S>
[src]
fn resolve(
&self,
_: &(),
_: Option<&[Selection<'_, __S>]>,
_: &Executor<'_, '_, Self::Context, __S>
) -> ExecutionResult<__S>
[src]Resolves the provided selection_set
against this GraphQLValue
. Read more
fn resolve_field(
&self,
_info: &Self::TypeInfo,
_field_name: &str,
_arguments: &Arguments<'_, S>,
_executor: &Executor<'_, '_, Self::Context, S>
) -> ExecutionResult<S>
[src]
fn resolve_field(
&self,
_info: &Self::TypeInfo,
_field_name: &str,
_arguments: &Arguments<'_, S>,
_executor: &Executor<'_, '_, Self::Context, S>
) -> ExecutionResult<S>
[src]Resolves the value of a single field on this GraphQLValue
. Read more
fn resolve_into_type(
&self,
info: &Self::TypeInfo,
type_name: &str,
selection_set: Option<&[Selection<'_, S>]>,
executor: &Executor<'_, '_, Self::Context, S>
) -> ExecutionResult<S>
[src]
fn resolve_into_type(
&self,
info: &Self::TypeInfo,
type_name: &str,
selection_set: Option<&[Selection<'_, S>]>,
executor: &Executor<'_, '_, Self::Context, S>
) -> ExecutionResult<S>
[src]Resolves this GraphQLValue
(being an interface or an union) into a concrete
downstream object type. Read more
fn concrete_type_name(
&self,
context: &Self::Context,
info: &Self::TypeInfo
) -> String
[src]
fn concrete_type_name(
&self,
context: &Self::Context,
info: &Self::TypeInfo
) -> String
[src]Returns the concrete GraphQLType
name for this GraphQLValue
being an interface,
an union or an object. Read more
impl<__S> GraphQLValueAsync<__S> for TypeKind where
__S: ScalarValue,
__S: Send + Sync,
Self: Sync,
[src]
impl<__S> GraphQLValueAsync<__S> for TypeKind where
__S: ScalarValue,
__S: Send + Sync,
Self: Sync,
[src]fn resolve_async<'a>(
&'a self,
info: &'a Self::TypeInfo,
selection_set: Option<&'a [Selection<'_, __S>]>,
executor: &'a Executor<'_, '_, Self::Context, __S>
) -> BoxFuture<'a, ExecutionResult<__S>>
[src]
fn resolve_async<'a>(
&'a self,
info: &'a Self::TypeInfo,
selection_set: Option<&'a [Selection<'_, __S>]>,
executor: &'a Executor<'_, '_, Self::Context, __S>
) -> BoxFuture<'a, ExecutionResult<__S>>
[src]Resolves the provided selection_set
against this GraphQLValueAsync
. Read more
fn resolve_field_async<'a>(
&'a self,
_info: &'a Self::TypeInfo,
_field_name: &'a str,
_arguments: &'a Arguments<'_, S>,
_executor: &'a Executor<'_, '_, Self::Context, S>
) -> BoxFuture<'a, ExecutionResult<S>>
[src]
fn resolve_field_async<'a>(
&'a self,
_info: &'a Self::TypeInfo,
_field_name: &'a str,
_arguments: &'a Arguments<'_, S>,
_executor: &'a Executor<'_, '_, Self::Context, S>
) -> BoxFuture<'a, ExecutionResult<S>>
[src]Resolves the value of a single field on this GraphQLValueAsync
. Read more
fn resolve_into_type_async<'a>(
&'a self,
info: &'a Self::TypeInfo,
type_name: &str,
selection_set: Option<&'a [Selection<'a, S>]>,
executor: &'a Executor<'a, 'a, Self::Context, S>
) -> BoxFuture<'a, ExecutionResult<S>>
[src]
fn resolve_into_type_async<'a>(
&'a self,
info: &'a Self::TypeInfo,
type_name: &str,
selection_set: Option<&'a [Selection<'a, S>]>,
executor: &'a Executor<'a, 'a, Self::Context, S>
) -> BoxFuture<'a, ExecutionResult<S>>
[src]Resolves this GraphQLValueAsync
(being an interface or an union) into a
concrete downstream object type. Read more
impl<__S> IsInputType<__S> for TypeKind where
__S: ScalarValue,
[src]
impl<__S> IsInputType<__S> for TypeKind where
__S: ScalarValue,
[src]impl<__S> IsOutputType<__S> for TypeKind where
__S: ScalarValue,
[src]
impl<__S> IsOutputType<__S> for TypeKind where
__S: ScalarValue,
[src]impl<__S> ToInputValue<__S> for TypeKind where
__S: ScalarValue,
[src]
impl<__S> ToInputValue<__S> for TypeKind where
__S: ScalarValue,
[src]fn to_input_value(&self) -> InputValue<__S>
[src]
fn to_input_value(&self) -> InputValue<__S>
[src]Performs the conversion.
impl Eq for TypeKind
[src]
impl StructuralEq for TypeKind
[src]
impl StructuralPartialEq for TypeKind
[src]
Auto Trait Implementations
impl RefUnwindSafe for TypeKind
impl Send for TypeKind
impl Sync for TypeKind
impl Unpin for TypeKind
impl UnwindSafe for TypeKind
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]pub fn equivalent(&self, key: &K) -> bool
[src]
pub fn equivalent(&self, key: &K) -> bool
[src]Compare self to key
and return true
if they are equal.
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,