[][src]Struct async_graphql_actix_web::HandlerBuilder

pub struct HandlerBuilder<Query, Mutation, Subscription> { /* fields omitted */ }

Actix-web handler builder

Methods

impl<Query, Mutation, Subscription> HandlerBuilder<Query, Mutation, Subscription> where
    Query: ObjectType + Send + Sync + 'static,
    Mutation: ObjectType + Send + Sync + 'static,
    Subscription: SubscriptionType + Send + Sync + 'static, 
[src]

pub fn new(schema: Schema<Query, Mutation, Subscription>) -> Self[src]

Create an HTTP handler builder

pub fn max_file_size(self, size: usize) -> Self[src]

Set the maximum file size for upload, default 2M bytes.

pub fn max_files(self, count: usize) -> Self[src]

Set the maximum files count for upload, default 9.

pub fn enable_ui(
    self,
    endpoint: &str,
    subscription_endpoint: Option<&str>
) -> Self
[src]

Enable GraphQL playground

'endpoint' is the endpoint of the GraphQL Request. 'subscription_endpoint' is the endpoint of the GraphQL Subscription.

pub fn enable_subscription(self) -> Self[src]

Enable GraphQL Subscription.

pub fn build(
    self
) -> impl Fn(HttpRequest, Payload) -> Pin<Box<dyn Future<Output = Result<HttpResponse>>>> + 'static + Clone
[src]

Create an HTTP handler.

Auto Trait Implementations

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

impl<Query, Mutation, Subscription> Send for HandlerBuilder<Query, Mutation, Subscription> where
    Mutation: Send,
    Query: Send,
    Subscription: Send

impl<Query, Mutation, Subscription> Sync for HandlerBuilder<Query, Mutation, Subscription> where
    Mutation: Sync,
    Query: Sync,
    Subscription: Sync

impl<Query, Mutation, Subscription> Unpin for HandlerBuilder<Query, Mutation, Subscription> where
    Mutation: Unpin,
    Query: Unpin,
    Subscription: Unpin

impl<Query, Mutation, Subscription> !UnwindSafe for HandlerBuilder<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, 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>,