Struct tsukuyomi_juniper::GraphQLState [−][src]
pub struct GraphQLState<T, QueryT, MutationT> where
QueryT: GraphQLType<Context = T>,
MutationT: GraphQLType<Context = T>, { /* fields omitted */ }
The main type containing all contextual values for processing GraphQL requests.
Methods
impl<T, QueryT, MutationT> GraphQLState<T, QueryT, MutationT> where
QueryT: GraphQLType<Context = T>,
MutationT: GraphQLType<Context = T>,
[src]
impl<T, QueryT, MutationT> GraphQLState<T, QueryT, MutationT> where
QueryT: GraphQLType<Context = T>,
MutationT: GraphQLType<Context = T>,
pub fn new(
context: T,
root_node: RootNode<'static, QueryT, MutationT>
) -> GraphQLState<T, QueryT, MutationT>
[src]
pub fn new(
context: T,
root_node: RootNode<'static, QueryT, MutationT>
) -> GraphQLState<T, QueryT, MutationT>
Creates a new GraphQLState
from components.
pub fn context(&self) -> &T
[src]
pub fn context(&self) -> &T
Returns the reference to context in this value.
pub fn root_node(&self) -> &RootNode<'static, QueryT, MutationT>
[src]
pub fn root_node(&self) -> &RootNode<'static, QueryT, MutationT>
Returns the reference to root node in this value.
pub fn execute(&self, request: GraphQLRequest) -> Execute<T, QueryT, MutationT>
[src]
pub fn execute(&self, request: GraphQLRequest) -> Execute<T, QueryT, MutationT>
Create a future for processing the execution of a GraphQL request.
Trait Implementations
impl<T: Debug, QueryT: Debug, MutationT: Debug> Debug for GraphQLState<T, QueryT, MutationT> where
QueryT: GraphQLType<Context = T>,
MutationT: GraphQLType<Context = T>,
[src]
impl<T: Debug, QueryT: Debug, MutationT: Debug> Debug for GraphQLState<T, QueryT, MutationT> where
QueryT: GraphQLType<Context = T>,
MutationT: GraphQLType<Context = T>,
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<T, QueryT, MutationT> Clone for GraphQLState<T, QueryT, MutationT> where
QueryT: GraphQLType<Context = T>,
MutationT: GraphQLType<Context = T>,
[src]
impl<T, QueryT, MutationT> Clone for GraphQLState<T, QueryT, MutationT> where
QueryT: GraphQLType<Context = T>,
MutationT: GraphQLType<Context = T>,
fn clone(&self) -> Self
[src]
fn clone(&self) -> Self
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl<T, QueryT, MutationT> GraphQLExecutor for GraphQLState<T, QueryT, MutationT> where
QueryT: GraphQLType<Context = T>,
MutationT: GraphQLType<Context = T>,
[src]
impl<T, QueryT, MutationT> GraphQLExecutor for GraphQLState<T, QueryT, MutationT> where
QueryT: GraphQLType<Context = T>,
MutationT: GraphQLType<Context = T>,
Auto Trait Implementations
impl<T, QueryT, MutationT> Send for GraphQLState<T, QueryT, MutationT> where
MutationT: Send + Sync,
QueryT: Send + Sync,
T: Send + Sync,
<MutationT as GraphQLType>::TypeInfo: Send + Sync,
<QueryT as GraphQLType>::TypeInfo: Send + Sync,
impl<T, QueryT, MutationT> Send for GraphQLState<T, QueryT, MutationT> where
MutationT: Send + Sync,
QueryT: Send + Sync,
T: Send + Sync,
<MutationT as GraphQLType>::TypeInfo: Send + Sync,
<QueryT as GraphQLType>::TypeInfo: Send + Sync,
impl<T, QueryT, MutationT> Sync for GraphQLState<T, QueryT, MutationT> where
MutationT: Send + Sync,
QueryT: Send + Sync,
T: Send + Sync,
<MutationT as GraphQLType>::TypeInfo: Send + Sync,
<QueryT as GraphQLType>::TypeInfo: Send + Sync,
impl<T, QueryT, MutationT> Sync for GraphQLState<T, QueryT, MutationT> where
MutationT: Send + Sync,
QueryT: Send + Sync,
T: Send + Sync,
<MutationT as GraphQLType>::TypeInfo: Send + Sync,
<QueryT as GraphQLType>::TypeInfo: Send + Sync,