[−][src]Struct async_graphql_tide::Endpoint
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]
fn clone(&self) -> Self
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<Query, Mutation, Subscription, TideState> Endpoint<TideState> for Endpoint<Query, Mutation, Subscription> where
Query: ObjectType + Send + Sync + 'static,
Mutation: ObjectType + Send + Sync + 'static,
Subscription: SubscriptionType + Send + Sync + 'static,
TideState: Clone + Send + Sync + 'static,
[src]
Query: ObjectType + Send + Sync + 'static,
Mutation: ObjectType + Send + Sync + 'static,
Subscription: SubscriptionType + Send + Sync + 'static,
TideState: Clone + Send + Sync + 'static,
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,
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,
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<State, F, Fut, Res> Endpoint<State> for F where
F: Send + Sync + 'static + Fn(Request<State>) -> Fut,
Fut: Future<Output = Result<Res, Error>> + Send + 'static,
Res: Into<Response> + 'static,
State: Clone + Send + Sync + 'static,
[src]
F: Send + Sync + 'static + Fn(Request<State>) -> Fut,
Fut: Future<Output = Result<Res, Error>> + Send + 'static,
Res: Into<Response> + 'static,
State: Clone + Send + Sync + 'static,
fn call<'life0, 'async_trait>(
&'life0 self,
req: Request<State>
) -> Pin<Box<dyn Future<Output = Result<Response, Error>> + 'async_trait + Send>> where
'life0: 'async_trait,
F: 'async_trait,
[src]
&'life0 self,
req: Request<State>
) -> Pin<Box<dyn Future<Output = Result<Response, Error>> + 'async_trait + Send>> where
'life0: 'async_trait,
F: 'async_trait,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,