Trait DynamicGraphQueryService

Source
pub trait DynamicGraphQueryService:
    Send
    + Sync
    + Lifecycle {
    // Required methods
    fn query<'life0, 'async_trait>(
        &'life0 self,
        request: String,
    ) -> Pin<Box<dyn Future<Output = Result<String, DynamicQueryError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn query_response<'life0, 'life1, 'async_trait>(
        &'life0 self,
        request: &'life1 str,
    ) -> Pin<Box<dyn Future<Output = Result<Response, DynamicQueryError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}

Required Methods§

Source

fn query<'life0, 'async_trait>( &'life0 self, request: String, ) -> Pin<Box<dyn Future<Output = Result<String, DynamicQueryError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Runs the given GraphQL query.

Source

fn query_response<'life0, 'life1, 'async_trait>( &'life0 self, request: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<Response, DynamicQueryError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Runs the given GraphQL query and returns the response.

Trait Implementations§

Source§

impl Injectable for dyn DynamicGraphQueryService + Sync + Send

Implementors§