pub struct LeetCode {
pub conf: Config,
/* private fields */
}
Expand description
LeetCode API set
Fields§
§conf: Config
Implementations§
Source§impl LeetCode
impl LeetCode
Sourcepub async fn get_category_problems(self, category: &str) -> Result<Response>
pub async fn get_category_problems(self, category: &str) -> Result<Response>
Get category problems
pub async fn get_question_ids_by_tag(self, slug: &str) -> Result<Response>
pub async fn get_user_info(self) -> Result<Response>
Sourcepub async fn get_question_daily(self) -> Result<Response>
pub async fn get_question_daily(self) -> Result<Response>
Get daily problem
Sourcepub async fn get_question_detail(self, slug: &str) -> Result<Response>
pub async fn get_question_detail(self, slug: &str) -> Result<Response>
Get specific problem detail
Sourcepub async fn run_code(
self,
j: HashMap<&'static str, String>,
url: String,
refer: String,
) -> Result<Response>
pub async fn run_code( self, j: HashMap<&'static str, String>, url: String, refer: String, ) -> Result<Response>
Send code to judge
Sourcepub async fn verify_result(self, id: String) -> Result<Response>
pub async fn verify_result(self, id: String) -> Result<Response>
Get the result of submission / testing
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LeetCode
impl !RefUnwindSafe for LeetCode
impl Send for LeetCode
impl Sync for LeetCode
impl Unpin for LeetCode
impl !UnwindSafe for LeetCode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoSql for T
impl<T> IntoSql for T
Source§fn into_sql<T>(self) -> Self::Expression
fn into_sql<T>(self) -> Self::Expression
Convert
self
to an expression for Diesel’s query builder. Read moreSource§fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression
Convert
&self
to an expression for Diesel’s query builder. Read more