tmdb-rs 1.0.4

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

use crate::Profile;

#[derive(Debug, Clone, Deserialize)]
pub struct AuthorDetails {
    pub name: String,
    pub username: String,
    #[serde(rename = "avatar_path")]
    pub avatar: Option<Profile>,
    pub rating: Option<f64>,
}

#[derive(Debug, Clone, Deserialize)]
pub struct Review {
    pub id: String,
    pub author: String,
    pub author_details: AuthorDetails,
    pub content: String,
    pub created_at: String,
    pub updated_at: String,
    pub url: String,
}

endpoint! {
    /// a review by id
    review(id: &str): GET "/review/{id}" => Review
}