Struct juniper::http::GraphQLResponse
source · pub struct GraphQLResponse<'a, S = DefaultScalarValue>(_);
Expand description
Simple wrapper around the result from executing a GraphQL query
This struct implements Serialize, so you can simply serialize this
to JSON and send it over the wire. Use the is_ok
method to determine
whether to send a 200 or 400 HTTP status code.
Implementations
sourceimpl<'a, S> GraphQLResponse<'a, S>where
S: ScalarValue,
impl<'a, S> GraphQLResponse<'a, S>where
S: ScalarValue,
Trait Implementations
sourceimpl<'a, T> Serialize for GraphQLResponse<'a, T>where
T: Serialize + ScalarValue,
Value<T>: Serialize,
ExecutionError<T>: Serialize,
GraphQLError<'a>: Serialize,
impl<'a, T> Serialize for GraphQLResponse<'a, T>where
T: Serialize + ScalarValue,
Value<T>: Serialize,
ExecutionError<T>: Serialize,
GraphQLError<'a>: Serialize,
Auto Trait Implementations
impl<'a, S> RefUnwindSafe for GraphQLResponse<'a, S>where
S: RefUnwindSafe,
impl<'a, S> Send for GraphQLResponse<'a, S>where
S: Send,
impl<'a, S> Sync for GraphQLResponse<'a, S>where
S: Sync,
impl<'a, S> Unpin for GraphQLResponse<'a, S>where
S: Unpin,
impl<'a, S> UnwindSafe for GraphQLResponse<'a, S>where
S: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more