Get category problems
(self, category: &str)
| 62 | |
| 63 | /// Get category problems |
| 64 | pub async fn get_category_problems(self, category: &str) -> Result<Response> { |
| 65 | trace!("Requesting {} problems...", &category); |
| 66 | let url = &self.conf.sys.urls.problems(category); |
| 67 | |
| 68 | Req { |
| 69 | default_headers: self.default_headers, |
| 70 | refer: None, |
| 71 | info: false, |
| 72 | json: None, |
| 73 | mode: Mode::Get, |
| 74 | name: "get_category_problems", |
| 75 | url: url.to_string(), |
| 76 | } |
| 77 | .send(&self.client) |
| 78 | .await |
| 79 | } |
| 80 | |
| 81 | pub async fn get_question_ids_by_tag(self, slug: &str) -> Result<Response> { |
| 82 | trace!("Requesting {} ref problems...", &slug); |
no test coverage detected