Get daily problem
(&self)
| 128 | |
| 129 | /// Get daily problem |
| 130 | pub async fn get_daily_problem_id(&self) -> Result<i32, Error> { |
| 131 | parser::daily( |
| 132 | self.clone() |
| 133 | .0 |
| 134 | .get_question_daily() |
| 135 | .await? |
| 136 | .json() // does not require LEETCODE_SESSION |
| 137 | .await?, |
| 138 | ) |
| 139 | .ok_or(Error::NoneError) |
| 140 | } |
| 141 | |
| 142 | /// Get problems from cache |
| 143 | pub fn get_problems(&self) -> Result<Vec<Problem>, Error> { |