TheMovieDB 0.1.0

A robust and idiomatic Rust API wrapper for The Movie Database (TMDb) v3 API.
Documentation
# TV Module

The `tv` module provides comprehensive functionality to interact with TV show-related data on TMDb, including details about TV shows, seasons, episodes, networks, and episode groups.

## Structs

### `TV`

Represents the TMDb TV API, allowing you to retrieve detailed information about TV shows, their account states, alternative titles, content ratings, credits, episode groups, external IDs, images, keywords, recommendations, reviews, screened theatrically status, similar TV shows, translations, videos, and watch providers. It also supports rating TV shows and fetching lists of latest, airing today, on the air, popular, and top-rated TV shows.

#### Methods

- `new(id: i32) -> Self`: Creates a new `TV` instance with a specific TV show ID.
- `info(options: Option<HashMap<String, String>>) -> Result<Value, Box<dyn std.error::Error>>`: Retrieves primary information about a TV show.
- `account_states(options: Option<HashMap<String, String>>) -> Result<Value, Box<dyn std::error::Error>>`: Retrieves the account states for a TV show.
- `alternative_titles(options: Option<HashMap<String, String>>) -> Result<Value, Box<dyn std.error::Error>>`: Retrieves alternative titles for a TV show.
- `content_ratings(options: Option<HashMap<String, String>>) -> Result<Value, Box<dyn std.error::Error>>`: Retrieves content ratings for a TV show.
- `credits(options: Option<HashMap<String, String>>) -> Result<Value, Box<dyn std.error::Error>>`: Retrieves the cast and crew for a TV show.
- `episode_groups(options: Option<HashMap<String, String>>) -> Result<Value, Box<dyn std::error::Error>>`: Retrieves the episode groups for a TV show.
- `external_ids(options: Option<HashMap<String, String>>) -> Result<Value, Box<dyn std::error::Error>>`: Retrieves the external IDs for a TV show.
- `images(options: Option<HashMap<String, String>>) -> Result<Value, Box<dyn std::error::Error>>`: Retrieves the images for a TV show.
- `keywords(options: Option<HashMap<String, String>>) -> Result<Value, Box<dyn std.error::Error>>`: Retrieves the keywords for a TV show.
- `recommendations(options: Option<HashMap<String, String>>) -> Result<Value, Box<dyn std.error::Error>>`: Retrieves TV show recommendations.
- `reviews(options: Option<HashMap<String, String>>) -> Result<Value, Box<dyn std::error::Error>>`: Retrieves the reviews for a TV show.
- `screened_theatrically(options: Option<HashMap<String, String>>) -> Result<Value, Box<dyn std::error::Error>>`: Retrieves the screened theatrically status for a TV show.
- `similar(options: Option<HashMap<String, String>>) -> Result<Value, Box<dyn std::error::Error>>`: Retrieves similar TV shows.
- `translations(options: Option<HashMap<String, String>>) -> Result<Value, Box<dyn std.error::Error>>`: Retrieves the translations for a TV show.
- `videos(options: Option<HashMap<String, String>>) -> Result<Value, Box<dyn std::error::Error>>`: Retrieves the videos for a TV show.
- `watch_providers(options: Option<HashMap<String, String>>) -> Result<Value, Box<dyn std.error::Error>>`: Retrieves the watch providers for a TV show.
- `rating(options: Option<HashMap<String, String>>, payload: Option<Value>) -> Result<Value, Box<dyn std::error::Error>>`: Rates a TV show.
- `rating_delete(options: Option<HashMap<String, String>>, payload: Option<Value>) -> Result<Value, Box<dyn std.error::Error>>`: Deletes a TV show rating.
- `latest(options: Option<HashMap<String, String>>) -> Result<Value, Box<dyn std::error::Error>>`: Retrieves the latest TV show added to TMDb.
- `airing_today(options: Option<HashMap<String, String>>) -> Result<Value, Box<dyn std::error::Error>>`: Retrieves a list of TV shows airing today.
- `on_the_air(options: Option<HashMap<String, String>>) -> Result<Value, Box<dyn std.error::Error>>`: Retrieves a list of TV shows currently on the air.
- `popular(options: Option<HashMap<String, String>>) -> Result<Value, Box<dyn std::error::Error>>`: Retrieves a list of popular TV shows.
- `top_rated(options: Option<HashMap<String, String>>) -> Result<Value, Box<dyn std::error::Error>>`: Retrieves a list of top-rated TV shows.

### `TVSeasons`

Represents the TMDb TV Seasons API, allowing you to retrieve information about TV show seasons.

#### Methods

- `new(tv_id: i32, season_number: i32) -> Self`: Creates a new `TVSeasons` instance with a specific TV show ID and season number.
- `info(options: Option<HashMap<String, String>>) -> Result<Value, Box<dyn std::error::Error>>`: Retrieves primary information about a TV season.
- `account_states(options: Option<HashMap<String, String>>) -> Result<Value, Box<dyn std::error::Error>>`: Retrieves the account states for a TV season.
- `credits(options: Option<HashMap<String, String>>) -> Result<Value, Box<dyn std::error::Error>>`: Retrieves the cast and crew for a TV season.
- `external_ids(options: Option<HashMap<String, String>>) -> Result<Value, Box<dyn std::error::Error>>`: Retrieves the external IDs for a TV season.
- `images(options: Option<HashMap<String, String>>) -> Result<Value, Box<dyn std::error::Error>>`: Retrieves the images for a TV season.
- `videos(options: Option<HashMap<String, String>>) -> Result<Value, Box<dyn std::error::Error>>`: Retrieves the videos for a TV season.

### `TVEpisodes`

Represents the TMDb TV Episodes API, allowing you to retrieve information about TV show episodes.

#### Methods

- `new(tv_id: i32, season_number: i32, episode_number: i32) -> Self`: Creates a new `TVEpisodes` instance with specific TV show ID, season number, and episode number.
- `info(options: Option<HashMap<String, String>>) -> Result<Value, Box<dyn std::error::Error>>`: Retrieves primary information about a TV episode.
- `account_states(options: Option<HashMap<String, String>>) -> Result<Value, Box<dyn std::error::Error>>`: Retrieves the account states for a TV episode.
- `credits(options: Option<HashMap<String, String>>) -> Result<Value, Box<dyn std::error::Error>>`: Retrieves the cast and crew for a TV episode.
- `external_ids(options: Option<HashMap<String, String>>) -> Result<Value, Box<dyn std::error::Error>>`: Retrieves the external IDs for a TV episode.
- `images(options: Option<HashMap<String, String>>) -> Result<Value, Box<dyn std.error::Error>>`: Retrieves the images for a TV episode.
- `translations(options: Option<HashMap<String, String>>) -> Result<Value, Box<dyn std.error::Error>>`: Retrieves the translations for a TV episode.
- `rating(options: Option<HashMap<String, String>>, payload: Option<Value>) -> Result<Value, Box<dyn std::error::Error>>`: Rates a TV episode.
- `rating_delete(options: Option<HashMap<String, String>>, payload: Option<Value>) -> Result<Value, Box<dyn std::error::Error>>`: Deletes a TV episode rating.
- `videos(options: Option<HashMap<String, String>>) -> Result<Value, Box<dyn std::error::Error>>`: Retrieves the videos for a TV episode.

### `TVEpisodeGroups`

Represents the TMDb TV Episode Groups API, allowing you to retrieve information about TV episode groups.

#### Methods

- `new(id: String) -> Self`: Creates a new `TVEpisodeGroups` instance with a specific TV episode group ID.
- `info(options: Option<HashMap<String, String>>) -> Result<Value, Box<dyn std.error::Error>>`: Retrieves primary information about a TV episode group.

### `TVChanges`

Represents the TMDb TV Changes API, allowing you to retrieve changes made to TV series, seasons, and episodes.

#### Methods

- `new(id: i32) -> Self`: Creates a new `TVChanges` instance with a specific ID (TV series, season, or episode).
- `series(options: Option<HashMap<String, String>>) -> Result<Value, Box<dyn std.error::Error>>`: Retrieves changes for a TV series.
- `season(options: Option<HashMap<String, String>>) -> Result<Value, Box<dyn std.error::Error>>`: Retrieves changes for a TV season.
- `episode(options: Option<HashMap<String, String>>) -> Result<Value, Box<dyn std::error::Error>>`: Retrieves changes for a TV episode.

### `Networks`

Represents the TMDb Networks API, allowing you to retrieve information about TV networks.

#### Methods

- `new(id: i32) -> Self`: Creates a new `Networks` instance with a specific network ID.
- `info(options: Option<HashMap<String, String>>) -> Result<Value, Box<dyn std::error::Error>>`: Retrieves primary information about a network.
- `alternative_names(options: Option<HashMap<String, String>>) -> Result<Value, Box<dyn std.error::Error>>`: Retrieves alternative names for a network.
- `images(options: Option<HashMap<String, String>>) -> Result<Value, Box<dyn std::error::Error>>`: Retrieves images for a network.