Struct async_graphql_rocket::GraphQLResponse
source · pub struct GraphQLResponse(pub BatchResponse);
Expand description
Wrapper around async-graphql::Response
that is a Rocket responder so it
can be returned from a routing function in Rocket.
It contains a BatchResponse
but since a response is a type of batch
response it works for both.
Tuple Fields§
§0: BatchResponse
Trait Implementations§
source§impl Debug for GraphQLResponse
impl Debug for GraphQLResponse
source§impl From<BatchResponse> for GraphQLResponse
impl From<BatchResponse> for GraphQLResponse
source§fn from(batch: BatchResponse) -> Self
fn from(batch: BatchResponse) -> Self
Converts to this type from the input type.
source§impl From<Response> for GraphQLResponse
impl From<Response> for GraphQLResponse
source§impl<'r> Responder<'r, 'static> for GraphQLResponse
impl<'r> Responder<'r, 'static> for GraphQLResponse
Auto Trait Implementations§
impl !RefUnwindSafe for GraphQLResponse
impl Send for GraphQLResponse
impl Sync for GraphQLResponse
impl Unpin for GraphQLResponse
impl !UnwindSafe for GraphQLResponse
Blanket Implementations§
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> IntoCollection<T> for T
impl<T> IntoCollection<T> for T
§fn into_collection<A>(self) -> SmallVec<A>where
A: Array<Item = T>,
fn into_collection<A>(self) -> SmallVec<A>where
A: Array<Item = T>,
Converts
self
into a collection.