Struct leetcode_cli::plugins::LeetCode [−][src]
pub struct LeetCode {
pub conf: Config,
// some fields omitted
}LeetCode API set
Fields
conf: ConfigImplementations
impl LeetCode[src]
impl LeetCode[src]pub fn new() -> Result<LeetCode, Error>[src]
New LeetCode client
pub async fn get_category_problems(
self,
category: &str
) -> Result<Response, Error>[src]
self,
category: &str
) -> Result<Response, Error>
Get category problems
pub async fn get_question_ids_by_tag(
self,
slug: &str
) -> Result<Response, Error>[src]
self,
slug: &str
) -> Result<Response, Error>
pub async fn get_question_detail(self, slug: &str) -> Result<Response, Error>[src]
Get specific problem detail
pub async fn run_code(
self,
j: HashMap<&'static str, String>,
url: String,
refer: String
) -> Result<Response, Error>[src]
self,
j: HashMap<&'static str, String>,
url: String,
refer: String
) -> Result<Response, Error>
Send code to judge
pub async fn verify_result(self, id: String) -> Result<Response, Error>[src]
Get the result of submission / testing
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for LeetCode
impl !RefUnwindSafe for LeetCodeimpl !UnwindSafe for LeetCode
impl !UnwindSafe for LeetCodeBlanket Implementations
impl<T> Instrument for T[src]
impl<T> Instrument for T[src]pub fn instrument(self, span: Span) -> Instrumented<Self>[src]
pub fn in_current_span(self) -> Instrumented<Self>[src]
impl<T> Instrument for T[src]
impl<T> Instrument for T[src]pub fn instrument(self, span: Span) -> Instrumented<Self>[src]
pub fn in_current_span(self) -> Instrumented<Self>[src]
impl<T> IntoSql for T[src]
impl<T> IntoSql for T[src]pub fn into_sql<T>(self) -> Self::Expression where
Self: AsExpression<T>, [src]
Self: AsExpression<T>,
pub fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression where
&'a Self: AsExpression<T>, [src]
&'a Self: AsExpression<T>,
impl<T> Same<T> for T
impl<T> Same<T> for Ttype Output = T
Should always be Self
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,