Trait leetcode_tui_rs::graphql::GQLLeetcodeQuery
source · pub trait GQLLeetcodeQuery: Serialize + Sync {
type T: DeserializeOwned;
// Provided methods
fn get_body(&self) -> Value { ... }
fn is_post(&self) -> bool { ... }
fn get_endpoint(&self) -> String { ... }
fn send<'life0, 'life1, 'async_trait>(
&'life0 self,
client: &'life1 Client
) -> Pin<Box<dyn Future<Output = AppResult<Self::T>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait { ... }
}
Required Associated Types§
type T: DeserializeOwned
Provided Methods§
fn get_body(&self) -> Value
fn is_post(&self) -> bool
sourcefn get_endpoint(&self) -> String
fn get_endpoint(&self) -> String
Default graphql endpoint
fn send<'life0, 'life1, 'async_trait>( &'life0 self, client: &'life1 Client ) -> Pin<Box<dyn Future<Output = AppResult<Self::T>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,
Implementors§
source§impl GQLLeetcodeQuery for leetcode_tui_rs::graphql::console_panel_config::Query
impl GQLLeetcodeQuery for leetcode_tui_rs::graphql::console_panel_config::Query
source§impl GQLLeetcodeQuery for leetcode_tui_rs::graphql::editor_data::Query
impl GQLLeetcodeQuery for leetcode_tui_rs::graphql::editor_data::Query
type T = QuestionData
source§impl GQLLeetcodeQuery for leetcode_tui_rs::graphql::problemset_question_list::Query
impl GQLLeetcodeQuery for leetcode_tui_rs::graphql::problemset_question_list::Query
source§impl GQLLeetcodeQuery for RunCode
impl GQLLeetcodeQuery for RunCode
type T = RunCodeResponse
source§impl GQLLeetcodeQuery for RunCodeResponse
impl GQLLeetcodeQuery for RunCodeResponse
type T = RunResponse
source§impl GQLLeetcodeQuery for SubmitCode
impl GQLLeetcodeQuery for SubmitCode
type T = SubmitCodeResponse
source§impl GQLLeetcodeQuery for SubmitCodeResponse
impl GQLLeetcodeQuery for SubmitCodeResponse
It may take indefinite time to run the solution on leetcode. Hence polling is done to retrieve the run status from the server.