Struct async_graphql_tide::GraphQLEndpoint
source · [−]#[non_exhaustive]pub struct GraphQLEndpoint<Query, Mutation, Subscription> {
pub schema: Schema<Query, Mutation, Subscription>,
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.schema: Schema<Query, Mutation, Subscription>
The schema of the endpoint.
opts: MultipartOptions
The multipart options of the endpoint.
batch: bool
Whether to support batch requests in the endpoint.
Implementations
sourceimpl<Query, Mutation, Subscription> GraphQLEndpoint<Query, Mutation, Subscription>
impl<Query, Mutation, Subscription> GraphQLEndpoint<Query, Mutation, Subscription>
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
sourceimpl<Query, Mutation, Subscription> Clone for GraphQLEndpoint<Query, Mutation, Subscription>
impl<Query, Mutation, Subscription> Clone for GraphQLEndpoint<Query, Mutation, Subscription>
sourceimpl<Query, Mutation, Subscription, TideState> Endpoint<TideState> for GraphQLEndpoint<Query, Mutation, Subscription> where
Query: ObjectType + 'static,
Mutation: ObjectType + 'static,
Subscription: SubscriptionType + 'static,
TideState: Clone + Send + Sync + 'static,
impl<Query, Mutation, Subscription, TideState> Endpoint<TideState> for GraphQLEndpoint<Query, Mutation, Subscription> where
Query: ObjectType + 'static,
Mutation: ObjectType + 'static,
Subscription: SubscriptionType + 'static,
TideState: Clone + Send + Sync + 'static,
Auto Trait Implementations
impl<Query, Mutation, Subscription> !RefUnwindSafe for GraphQLEndpoint<Query, Mutation, Subscription>
impl<Query, Mutation, Subscription> Send for GraphQLEndpoint<Query, Mutation, Subscription> where
Mutation: Send + Sync,
Query: Send + Sync,
Subscription: Send + Sync,
impl<Query, Mutation, Subscription> Sync for GraphQLEndpoint<Query, Mutation, Subscription> where
Mutation: Send + Sync,
Query: Send + Sync,
Subscription: Send + Sync,
impl<Query, Mutation, Subscription> Unpin for GraphQLEndpoint<Query, Mutation, Subscription>
impl<Query, Mutation, Subscription> !UnwindSafe for GraphQLEndpoint<Query, Mutation, Subscription>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more