Struct async_graphql_tide::Endpoint[][src]

#[non_exhaustive]pub struct Endpoint<Query, Mutation, Subscription> {
    pub schema: Schema<Query, Mutation, Subscription>,
    pub opts: MultipartOptions,
    pub batch: bool,
}

A GraphQL endpoint.

This is created with the endpoint function.

Fields (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

impl<Query, Mutation, Subscription> Endpoint<Query, Mutation, Subscription>[src]

#[must_use]pub fn multipart_opts(self, opts: MultipartOptions) -> Self[src]

Set the multipart options of the endpoint.

#[must_use]pub fn batch(self, batch: bool) -> Self[src]

Set whether batch requests are supported in the endpoint.

Trait Implementations

impl<Query, Mutation, Subscription> Clone for Endpoint<Query, Mutation, Subscription>[src]

impl<Query, Mutation, Subscription, TideState> Endpoint<TideState> for Endpoint<Query, Mutation, Subscription> where
    Query: ObjectType + 'static,
    Mutation: ObjectType + 'static,
    Subscription: SubscriptionType + 'static,
    TideState: Clone + Send + Sync + 'static, 
[src]

Auto Trait Implementations

impl<Query, Mutation, Subscription> !RefUnwindSafe for Endpoint<Query, Mutation, Subscription>

impl<Query, Mutation, Subscription> Send for Endpoint<Query, Mutation, Subscription> where
    Mutation: Send + Sync,
    Query: Send + Sync,
    Subscription: Send + Sync

impl<Query, Mutation, Subscription> Sync for Endpoint<Query, Mutation, Subscription> where
    Mutation: Send + Sync,
    Query: Send + Sync,
    Subscription: Send + Sync

impl<Query, Mutation, Subscription> Unpin for Endpoint<Query, Mutation, Subscription>

impl<Query, Mutation, Subscription> !UnwindSafe for Endpoint<Query, Mutation, Subscription>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,