aboutsummaryrefslogtreecommitdiff
path: root/tools/src/tmdb.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tools/src/tmdb.rs')
-rw-r--r--tools/src/tmdb.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/tools/src/tmdb.rs b/tools/src/tmdb.rs
index c17adab..d451a95 100644
--- a/tools/src/tmdb.rs
+++ b/tools/src/tmdb.rs
@@ -14,14 +14,14 @@ pub struct TmdbQuery {
#[derive(Debug, Clone, Deserialize)]
pub struct TmdbQueryResult {
pub adult: bool,
- pub backdrop_path: String,
+ pub backdrop_path: Option<String>,
pub genre_ids: Vec<u64>,
pub id: u64,
pub original_language: String,
pub original_title: String,
pub overview: String,
pub popularity: f64,
- pub poster_path: String,
+ pub poster_path: Option<String>,
pub release_date: String,
pub title: String,
pub video: bool,
@@ -46,11 +46,11 @@ pub struct TmdbDetails {
pub vote_average: f64,
pub vote_count: usize,
pub budget: usize,
- pub homepage: String,
- pub imdb_id: String,
+ pub homepage: Option<String>,
+ pub imdb_id: Option<String>,
pub production_companies: Vec<TmdbProductionCompany>,
pub revenue: usize,
- pub tagline: String,
+ pub tagline: Option<String>,
}
#[derive(Debug, Clone, Deserialize)]