pub trait GQLLeetcodeQuery: Serialize {
    type T: DeserializeOwned;

    // Provided methods
    fn get_body(&self) -> Value { ... }
    fn get_endpoint(&self) -> &'static str { ... }
    fn post<'life0, 'life1, 'async_trait>(
        &'life0 self,
        client: &'life1 Client
    ) -> Pin<Box<dyn Future<Output = AppResult<Self::T>> + Send + 'async_trait>>
       where Self: Sync + 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait { ... }
}

Required Associated Types§

Provided Methods§

source

fn get_body(&self) -> Value

source

fn get_endpoint(&self) -> &'static str

source

fn post<'life0, 'life1, 'async_trait>( &'life0 self, client: &'life1 Client ) -> Pin<Box<dyn Future<Output = AppResult<Self::T>> + Send + 'async_trait>>where Self: Sync + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Implementors§

source§

impl GQLLeetcodeQuery for leetcode_tui_rs::graphql::problemset_question_list::Query

source§

impl GQLLeetcodeQuery for leetcode_tui_rs::graphql::question_content::Query

§

type T = Data