Trait gurkle::Executor[][src]

pub trait Executor<'a, T>: Sync where
    T: for<'de> Deserialize<'de> + 'a, 
{ #[must_use] fn execute<'async_trait>(
        &'a self,
        request_body: RequestBody
    ) -> Pin<Box<dyn Future<Output = Result<T, Error>> + Send + 'async_trait>>
    where
        'a: 'async_trait,
        Self: 'async_trait
; }

Trait for executing GraphQL operations (queries and mutations).

Required methods

#[must_use]fn execute<'async_trait>(
    &'a self,
    request_body: RequestBody
) -> Pin<Box<dyn Future<Output = Result<T, Error>> + Send + 'async_trait>> where
    'a: 'async_trait,
    Self: 'async_trait, 
[src]

Execute provided GraphQL operation (query or mutation).

Loading content...

Implementors

impl<'a, T> Executor<'a, T> for HttpClient where
    T: for<'de> Deserialize<'de> + 'a, 
[src]

Loading content...