tmdb_api/people/
mod.rs

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