pub struct GraphQl<Q, M, Sub, S>where
Q: GraphQLType<S, Context = GraphQlContext>,
M: GraphQLType<S, Context = GraphQlContext>,
Sub: GraphQLType<S, Context = GraphQlContext>,
S: ScalarValue,{ /* private fields */ }
Available on crate feature
graphql
only.Expand description
This only supports POST requests
Implementations§
Source§impl<Q, M, Sub, S> GraphQl<Q, M, Sub, S>where
Q: GraphQLType<S, Context = GraphQlContext>,
M: GraphQLType<S, Context = GraphQlContext>,
Sub: GraphQLType<S, Context = GraphQlContext>,
S: ScalarValue,
impl<Q, M, Sub, S> GraphQl<Q, M, Sub, S>where
Q: GraphQLType<S, Context = GraphQlContext>,
M: GraphQLType<S, Context = GraphQlContext>,
Sub: GraphQLType<S, Context = GraphQlContext>,
S: ScalarValue,
Trait Implementations§
Source§impl<Q, M, Sub, S> Route for GraphQl<Q, M, Sub, S>where
Q: GraphQLTypeAsync<S, Context = GraphQlContext> + Send,
Q::TypeInfo: Send + Sync,
M: GraphQLTypeAsync<S, Context = GraphQlContext> + Send,
M::TypeInfo: Send + Sync,
Sub: GraphQLSubscriptionType<S, Context = GraphQlContext> + Send,
Sub::TypeInfo: Send + Sync,
S: ScalarValue + Send + Sync,
impl<Q, M, Sub, S> Route for GraphQl<Q, M, Sub, S>where
Q: GraphQLTypeAsync<S, Context = GraphQlContext> + Send,
Q::TypeInfo: Send + Sync,
M: GraphQLTypeAsync<S, Context = GraphQlContext> + Send,
M::TypeInfo: Send + Sync,
Sub: GraphQLSubscriptionType<S, Context = GraphQlContext> + Send,
Sub::TypeInfo: Send + Sync,
S: ScalarValue + Send + Sync,
fn validate_requirements(&self, _params: &ParamsNames<'_>, _data: &Resources)
fn path(&self) -> RoutePath
fn call<'a>( &'a self, req: &'a mut Request, _params: &'a PathParams, data: &'a Resources, ) -> PinnedFuture<'a, Result<Response>> ⓘ
Auto Trait Implementations§
impl<Q, M, Sub, S> Freeze for GraphQl<Q, M, Sub, S>where
Q: Freeze,
<Q as GraphQLValue<S>>::TypeInfo: Freeze,
M: Freeze,
<M as GraphQLValue<S>>::TypeInfo: Freeze,
Sub: Freeze,
<Sub as GraphQLValue<S>>::TypeInfo: Freeze,
impl<Q, M, Sub, S> RefUnwindSafe for GraphQl<Q, M, Sub, S>where
Q: RefUnwindSafe,
<Q as GraphQLValue<S>>::TypeInfo: RefUnwindSafe,
M: RefUnwindSafe,
<M as GraphQLValue<S>>::TypeInfo: RefUnwindSafe,
Sub: RefUnwindSafe,
<Sub as GraphQLValue<S>>::TypeInfo: RefUnwindSafe,
S: RefUnwindSafe,
impl<Q, M, Sub, S> Send for GraphQl<Q, M, Sub, S>where
Q: Send,
<Q as GraphQLValue<S>>::TypeInfo: Send,
M: Send,
<M as GraphQLValue<S>>::TypeInfo: Send,
Sub: Send,
<Sub as GraphQLValue<S>>::TypeInfo: Send,
S: Send,
impl<Q, M, Sub, S> Sync for GraphQl<Q, M, Sub, S>where
Q: Sync,
<Q as GraphQLValue<S>>::TypeInfo: Sync,
M: Sync,
<M as GraphQLValue<S>>::TypeInfo: Sync,
Sub: Sync,
<Sub as GraphQLValue<S>>::TypeInfo: Sync,
S: Sync,
impl<Q, M, Sub, S> Unpin for GraphQl<Q, M, Sub, S>where
Q: Unpin,
<Q as GraphQLValue<S>>::TypeInfo: Unpin,
M: Unpin,
<M as GraphQLValue<S>>::TypeInfo: Unpin,
Sub: Unpin,
<Sub as GraphQLValue<S>>::TypeInfo: Unpin,
S: Unpin,
impl<Q, M, Sub, S> UnwindSafe for GraphQl<Q, M, Sub, S>where
Q: UnwindSafe,
<Q as GraphQLValue<S>>::TypeInfo: UnwindSafe,
M: UnwindSafe,
<M as GraphQLValue<S>>::TypeInfo: UnwindSafe,
Sub: UnwindSafe,
<Sub as GraphQLValue<S>>::TypeInfo: UnwindSafe,
S: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more