1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#[cfg(feature = "commands")]
pub mod details;
use serde::{Deserialize, Serialize};
#[derive(Clone, Debug, PartialEq, Deserialize, Serialize)]
pub struct PersonShort {
pub id: u64,
pub credit_id: Option<String>,
pub name: String,
pub gender: u64,
pub profile_path: Option<String>,
}
#[derive(Clone, Debug, PartialEq, Deserialize, Serialize)]
pub struct Person {
#[serde(flatten)]
pub inner: PersonShort,
pub adult: bool,
pub also_known_as: Vec<String>,
pub biography: String,
#[serde(with = "crate::util::date")]
pub birthday: chrono::NaiveDate,
#[serde(with = "crate::util::optional_date")]
pub deathday: Option<chrono::NaiveDate>,
pub homepage: Option<String>,
pub imdb_id: String,
pub known_for_department: String,
pub popularity: f64,
pub place_of_birth: Option<String>,
pub profile_path: Option<String>,
}