Struct async_graphql_tide::GraphQLEndpoint
source · #[non_exhaustive]pub struct GraphQLEndpoint<E> {
pub executor: E,
pub opts: MultipartOptions,
pub batch: bool,
}
Expand description
A GraphQL endpoint.
This is created with the endpoint
function.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.executor: E
The graphql executor
opts: MultipartOptions
The multipart options of the endpoint.
batch: bool
Whether to support batch requests in the endpoint.
Implementations§
source§impl<E> GraphQLEndpoint<E>
impl<E> GraphQLEndpoint<E>
sourcepub fn multipart_opts(self, opts: MultipartOptions) -> Self
pub fn multipart_opts(self, opts: MultipartOptions) -> Self
Set the multipart options of the endpoint.