[][src]Struct async_graphql::QueryBuilder

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

Query builder

Methods

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

pub fn operator_name<T: Into<String>>(self, name: T) -> Self[src]

Specify the operation name.

pub fn variables(self, variables: Variables) -> Self[src]

Specify the variables.

pub fn data<D: Any + Send + Sync>(self, data: D) -> Self[src]

Add a context data that can be accessed in the Context, you access it with Context::data.

pub fn is_upload(&self) -> bool[src]

Detects whether any parameter contains the Upload type

pub fn set_upload(
    &mut self,
    var_path: &str,
    filename: &str,
    content_type: Option<&str>,
    content: Bytes
)
[src]

Set upload files

pub async fn execute(self) -> Result<QueryResponse> where
    Query: ObjectType + Send + Sync,
    Mutation: ObjectType + Send + Sync
[src]

Execute the query.

pub fn cache_control(&self) -> CacheControl[src]

Get cache control value

Auto Trait Implementations

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

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

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

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

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