Skip to main content

tmdb_rs/endpoints/
certification.rs

1use std::collections::HashMap;
2
3use serde::Deserialize;
4
5#[derive(Debug, Clone, Deserialize)]
6pub struct Certification {
7    pub certification: String,
8    pub meaning: String,
9    pub order: u32,
10}
11
12/// certifications by country code
13pub type Certifications = HashMap<String, Vec<Certification>>;
14
15endpoint! {
16    /// the movie certifications by country
17    movie_certifications(): GET "/certification/movie/list" => Certifications [certifications]
18}
19
20endpoint! {
21    /// the series certifications by country
22    tv_certifications(): GET "/certification/tv/list" => Certifications [certifications]
23}