tmdb_rs/endpoints/
review.rs1use serde::Deserialize;
2
3use crate::Profile;
4
5#[derive(Debug, Clone, Deserialize)]
6pub struct AuthorDetails {
7 pub name: String,
8 pub username: String,
9 #[serde(rename = "avatar_path")]
10 pub avatar: Option<Profile>,
11 pub rating: Option<f64>,
12}
13
14#[derive(Debug, Clone, Deserialize)]
15pub struct Review {
16 pub id: String,
17 pub author: String,
18 pub author_details: AuthorDetails,
19 pub content: String,
20 pub created_at: String,
21 pub updated_at: String,
22 pub url: String,
23}
24
25endpoint! {
26 review(id: &str): GET "/review/{id}" => Review
28}