algorithm-problem-client 0.6.0

HTTP Client for algorithm problems
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use crate::util::Problem;

#[derive(Clone, Debug, PartialEq, Eq)]
pub struct CodeChefProblem {
    pub title: String,
    pub code: String,
    pub successful_counts: u32,
}

impl Problem for CodeChefProblem {
    fn url(&self) -> String {
        format!("https://www.codechef.com/problems/{}", self.code)
    }
}