Struct async_graphql_actix_web::Response [−][src]
pub struct Response(pub BatchResponse);
Expand description
Responder for a GraphQL response.
This contains a batch response, but since regular responses are a type of batch response it works for both.
Tuple Fields
0: BatchResponse
Trait Implementations
Performs the conversion.
type Future = Ready<Result<HttpResponse>>
type Future = Ready<Result<HttpResponse>>
The future response value.
Convert itself to AsyncResult
or Error
.
Override a status code for a Responder. Read more
fn with_header<K, V>(self, key: K, value: V) -> CustomResponder<Self> where
V: IntoHeaderValue,
HeaderName: TryFrom<K>,
<HeaderName as TryFrom<K>>::Error: Into<Error>,
fn with_header<K, V>(self, key: K, value: V) -> CustomResponder<Self> where
V: IntoHeaderValue,
HeaderName: TryFrom<K>,
<HeaderName as TryFrom<K>>::Error: Into<Error>,
Add header to the Responder’s response. Read more
Auto Trait Implementations
impl !RefUnwindSafe for Response
impl !UnwindSafe for Response
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V
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