Trait GQLLeetcodeRequest

Source
pub trait GQLLeetcodeRequest: Serialize + Sync {
    type T: DeserializeOwned;

    // Provided methods
    fn get_body(&self) -> Value { ... }
    fn is_post(&self) -> bool { ... }
    fn get_endpoint(&self) -> String { ... }
    fn use_cache(&self) -> bool { ... }
    fn get_query_hash(&self) -> u64 { ... }
    fn send<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = AppResult<Self::T>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait { ... }
}

Required Associated Types§

Provided Methods§

Source

fn get_body(&self) -> Value

Source

fn is_post(&self) -> bool

Source

fn get_endpoint(&self) -> String

Default graphql endpoint

Source

fn use_cache(&self) -> bool

Source

fn get_query_hash(&self) -> u64

Source

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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl GQLLeetcodeRequest for SubmitCodeIntermediateResponse

Polling is done to retrieve the run status from the server. Hence it may take indefinite time to run the solution on leetcode.

Source§

impl GQLLeetcodeRequest for SubmitCodeRequest

Source§

impl GQLLeetcodeRequest for leetcode_core::graphql::query::console_panel_config::Query

Source§

impl GQLLeetcodeRequest for leetcode_core::graphql::query::daily_coding_challenge::Query

Source§

impl GQLLeetcodeRequest for leetcode_core::graphql::query::editor_data::Query

Source§

impl GQLLeetcodeRequest for leetcode_core::graphql::query::problemset_question_list::Query

Source§

impl GQLLeetcodeRequest for leetcode_core::graphql::query::question_content::Query

Source§

impl GQLLeetcodeRequest for RunCodeIntermediateResponse

Source§

impl GQLLeetcodeRequest for RunCodeRequest