[][src]Trait tsukuyomi_juniper::Schema

pub trait Schema<S = DefaultScalarValue> where
    S: ScalarValue,
    &'a S: ScalarRefValue<'a>, 
{ type Query: GraphQLType<S, Context = Self::Context, TypeInfo = Self::QueryInfo>; type QueryInfo; type Mutation: GraphQLType<S, Context = Self::Context, TypeInfo = Self::MutationInfo>; type MutationInfo; type Context; fn as_root_node(&self) -> &RootNode<'static, Self::Query, Self::Mutation, S>; }

A marker trait representing a root node of GraphQL schema.

Associated Types

type Query: GraphQLType<S, Context = Self::Context, TypeInfo = Self::QueryInfo>

type QueryInfo

type Mutation: GraphQLType<S, Context = Self::Context, TypeInfo = Self::MutationInfo>

type MutationInfo

type Context

Loading content...

Required methods

fn as_root_node(&self) -> &RootNode<'static, Self::Query, Self::Mutation, S>

Loading content...

Implementations on Foreign Types

impl<QueryT, MutationT, CtxT, S> Schema<S> for RootNode<'static, QueryT, MutationT, S> where
    QueryT: GraphQLType<S, Context = CtxT>,
    MutationT: GraphQLType<S, Context = CtxT>,
    S: ScalarValue,
    &'a S: ScalarRefValue<'a>, 
[src]

type Query = QueryT

type QueryInfo = QueryT::TypeInfo

type Mutation = MutationT

type MutationInfo = MutationT::TypeInfo

type Context = CtxT

impl<T, S> Schema<S> for Box<T> where
    T: Schema<S>,
    S: ScalarValue,
    &'a S: ScalarRefValue<'a>, 
[src]

type Query = T::Query

type QueryInfo = T::QueryInfo

type Mutation = T::Mutation

type MutationInfo = T::MutationInfo

type Context = T::Context

impl<T, S> Schema<S> for Arc<T> where
    T: Schema<S>,
    S: ScalarValue,
    &'a S: ScalarRefValue<'a>, 
[src]

type Query = T::Query

type QueryInfo = T::QueryInfo

type Mutation = T::Mutation

type MutationInfo = T::MutationInfo

type Context = T::Context

Loading content...

Implementors

Loading content...