Struct async_graphql_poem::GraphQLBatchResponse
source · pub struct GraphQLBatchResponse(pub BatchResponse);Expand description
Response for async_graphql::BatchRequest.
Tuple Fields§
§0: BatchResponseTrait Implementations§
source§impl From<BatchResponse> for GraphQLBatchResponse
impl From<BatchResponse> for GraphQLBatchResponse
source§fn from(resp: BatchResponse) -> Self
fn from(resp: BatchResponse) -> Self
Converts to this type from the input type.
source§impl IntoResponse for GraphQLBatchResponse
impl IntoResponse for GraphQLBatchResponse
source§fn into_response(self) -> Response
fn into_response(self) -> Response
Consume itself and return
Response.source§fn with_header<K, V>(self, key: K, value: V) -> WithHeader<Self>
fn with_header<K, V>(self, key: K, value: V) -> WithHeader<Self>
Wrap an
impl IntoResponse to add a header. Read moresource§fn with_content_type<V>(self, content_type: V) -> WithContentType<Self>
fn with_content_type<V>(self, content_type: V) -> WithContentType<Self>
Wrap an
impl IntoResponse to with a new content type. Read moresource§fn with_status(self, status: StatusCode) -> WithStatus<Self>where
Self: Sized,
fn with_status(self, status: StatusCode) -> WithStatus<Self>where
Self: Sized,
Wrap an
impl IntoResponse to set a status code. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for GraphQLBatchResponse
impl Send for GraphQLBatchResponse
impl Sync for GraphQLBatchResponse
impl Unpin for GraphQLBatchResponse
impl !UnwindSafe for GraphQLBatchResponse
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoResult<T> for Twhere
T: IntoResponse,
impl<T> IntoResult<T> for Twhere
T: IntoResponse,
source§fn into_result(self) -> Result<T, Error>
fn into_result(self) -> Result<T, Error>
Consumes this value returns a
poem::Result<T>.