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.
Trait Implementations§
source§impl<E: Executor> Clone for GraphQLEndpoint<E>
impl<E: Executor> Clone for GraphQLEndpoint<E>
Auto Trait Implementations§
impl<E> RefUnwindSafe for GraphQLEndpoint<E>where E: RefUnwindSafe,
impl<E> Send for GraphQLEndpoint<E>where E: Send,
impl<E> Sync for GraphQLEndpoint<E>where E: Sync,
impl<E> Unpin for GraphQLEndpoint<E>where E: Unpin,
impl<E> UnwindSafe for GraphQLEndpoint<E>where E: UnwindSafe,
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