tmdb-rs 1.0.4

Async, fully-typed TMDB (API v3 + v4) client with compile-time append_to_response
Documentation
use std::collections::HashMap;

use serde::Deserialize;

#[derive(Debug, Clone, Deserialize)]
pub struct Certification {
    pub certification: String,
    pub meaning: String,
    pub order: u32,
}

/// certifications by country code
pub type Certifications = HashMap<String, Vec<Certification>>;

endpoint! {
    /// the movie certifications by country
    movie_certifications(): GET "/certification/movie/list" => Certifications [certifications]
}

endpoint! {
    /// the series certifications by country
    tv_certifications(): GET "/certification/tv/list" => Certifications [certifications]
}