Enum async_graphql::BatchResponse 
source · Expand description
Response for batchable queries
Variants
Single(Response)
Response for single queries
Batch(Vec<Response>)
Response for batch queries
Implementations
sourceimpl BatchResponse
 
impl BatchResponse
sourcepub fn cache_control(&self) -> CacheControl
 
pub fn cache_control(&self) -> CacheControl
Gets cache control value
sourcepub fn http_headers(&self) -> HeaderMap
 
pub fn http_headers(&self) -> HeaderMap
Returns HTTP headers map.
sourcepub fn http_headers_iter(
    &self
) -> impl Iterator<Item = (HeaderName, HeaderValue)>
 
pub fn http_headers_iter(
    &self
) -> impl Iterator<Item = (HeaderName, HeaderValue)>
Returns HTTP headers iterator.
Trait Implementations
sourceimpl Debug for BatchResponse
 
impl Debug for BatchResponse
sourceimpl From<Response> for BatchResponse
 
impl From<Response> for BatchResponse
sourceimpl Serialize for BatchResponse
 
impl Serialize for BatchResponse
Auto Trait Implementations
impl !RefUnwindSafe for BatchResponse
impl Send for BatchResponse
impl Sync for BatchResponse
impl Unpin for BatchResponse
impl !UnwindSafe for BatchResponse
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