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
Performs the conversion.
Returns Ok
if a Response
could be generated successfully. Otherwise,
returns an Err
with a failing Status
. Read more
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
Mutably borrows from an owned value. Read more
pub fn into_collection<A>(self) -> SmallVec<A> where
A: Array<Item = T>,
pub fn into_collection<A>(self) -> SmallVec<A> where
A: Array<Item = T>,
Converts self
into a collection.
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more