[][src]Struct leetcode_cli::plugins::LeetCode

pub struct LeetCode {
    pub conf: Config,
    // some fields omitted
}

LeetCode API set

Fields

conf: Config

Methods

impl LeetCode[src]

pub fn new() -> Result<LeetCode, Error>[src]

New LeetCode client

pub fn get_category_problems(self, category: &str) -> Result<Response, Error>[src]

Get category problems

pub fn get_question_ids_by_tag(self, slug: &str) -> Result<Response, Error>[src]

pub fn get_question_detail(self, slug: &str) -> Result<Response, Error>[src]

Get specific problem detail

pub fn run_code(
    self,
    j: HashMap<&'static str, String>,
    url: String,
    refer: String
) -> Result<Response, Error>
[src]

Send code to judge

pub fn verify_result(self, id: String) -> Result<Response, Error>[src]

Get the result of submission / testing

Trait Implementations

impl Clone for LeetCode[src]

Auto Trait Implementations

impl !RefUnwindSafe for LeetCode

impl Send for LeetCode

impl Sync for LeetCode

impl Unpin for LeetCode

impl !UnwindSafe for LeetCode

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> FromPy<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> IntoPy<U> for T where
    U: FromPy<T>, 
[src]

impl<T> IntoSql for T[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Err = <U as TryFrom<T>>::Err

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,