Enum async_graphql::BatchRequest [−][src]
Expand description
Batch support for GraphQL requests, which is either a single query, or an array of queries
Reference: https://www.apollographql.com/blog/batching-client-graphql-queries-a685f5bcd41b/
Variants
Single(Request)
Single query
Tuple Fields of Single
0: Request
Non-empty array of queries
Implementations
Attempt to convert the batch request into a single request.
Errors
Fails if the batch request is a list of requests with a message saying that batch requests aren’t supported.
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl !RefUnwindSafe for BatchRequest
impl Send for BatchRequest
impl Sync for BatchRequest
impl Unpin for BatchRequest
impl !UnwindSafe for BatchRequest
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. 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