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.
Trait Implementations
impl From<BatchResponse> for Response
[src]
impl From<BatchResponse> for Response
[src]fn from(resp: BatchResponse) -> Self
[src]
fn from(resp: BatchResponse) -> Self
[src]Performs the conversion.
impl Responder for Response
[src]
impl Responder for Response
[src]type Future = Ready<Result<HttpResponse>>
type Future = Ready<Result<HttpResponse>>
The future response value.
fn respond_to(self, _req: &HttpRequest) -> Self::Future
[src]
fn respond_to(self, _req: &HttpRequest) -> Self::Future
[src]Convert itself to AsyncResult
or Error
.
fn with_status(self, status: StatusCode) -> CustomResponder<Self>
[src]
fn with_status(self, status: StatusCode) -> CustomResponder<Self>
[src]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>,
[src]
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>,
[src]Add header to the Responder’s response. Read more
Auto Trait Implementations
impl RefUnwindSafe for Response
impl Send for Response
impl Sync for Response
impl Unpin for Response
impl UnwindSafe for Response
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,