[][src]Struct async_graphql::PreparedQuery

pub struct PreparedQuery<'a, Query, Mutation> { /* fields omitted */ }

Prepared query object

Methods

impl<'a, Query, Mutation> PreparedQuery<'a, Query, Mutation>[src]

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<QueryResult> 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<'a, Query, Mutation> !RefUnwindSafe for PreparedQuery<'a, Query, Mutation>

impl<'a, Query, Mutation> Send for PreparedQuery<'a, Query, Mutation> where
    Mutation: Sync,
    Query: Sync

impl<'a, Query, Mutation> Sync for PreparedQuery<'a, Query, Mutation> where
    Mutation: Sync,
    Query: Sync

impl<'a, Query, Mutation> Unpin for PreparedQuery<'a, Query, Mutation>

impl<'a, Query, Mutation> !UnwindSafe for PreparedQuery<'a, Query, Mutation>

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>,