[−][src]Struct async_graphql_actix_web::HandlerBuilder
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]
Query: ObjectType + Send + Sync + 'static,
Mutation: ObjectType + Send + Sync + 'static,
Subscription: SubscriptionType + Send + Sync + 'static,
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]
self,
endpoint: &str,
subscription_endpoint: Option<&str>
) -> Self
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]
self
) -> impl Fn(HttpRequest, Payload) -> Pin<Box<dyn Future<Output = Result<HttpResponse>>>> + 'static + Clone
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,
Mutation: Send,
Query: Send,
Subscription: Send,
impl<Query, Mutation, Subscription> Sync for HandlerBuilder<Query, Mutation, Subscription> where
Mutation: Sync,
Query: Sync,
Subscription: Sync,
Mutation: Sync,
Query: Sync,
Subscription: Sync,
impl<Query, Mutation, Subscription> Unpin for HandlerBuilder<Query, Mutation, Subscription> where
Mutation: Unpin,
Query: Unpin,
Subscription: Unpin,
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]
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<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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>,