tmdb_api/watch_provider/
mod.rs

1use std::collections::HashMap;
2
3#[cfg(feature = "commands")]
4pub mod list;
5
6#[derive(Clone, Debug, Deserialize, Serialize)]
7pub struct WatchProvider {
8    pub provider_id: u64,
9    pub provider_name: String,
10    pub display_priority: u64,
11    pub logo_path: String,
12}
13
14#[derive(Clone, Debug, Deserialize, Serialize)]
15pub struct LocatedWatchProvider {
16    pub link: String,
17    #[serde(default)]
18    pub flatrate: Vec<WatchProvider>,
19    #[serde(default)]
20    pub rent: Vec<WatchProvider>,
21    #[serde(default)]
22    pub buy: Vec<WatchProvider>,
23}
24
25#[derive(Clone, Debug, Deserialize, Serialize)]
26pub struct WatchProviderResult {
27    pub id: u64,
28    pub results: HashMap<String, LocatedWatchProvider>,
29}