TheMovieDB 0.1.0

A robust and idiomatic Rust API wrapper for The Movie Database (TMDb) v3 API.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# Genres Module

The `genres` module provides functionality to retrieve lists of movie and TV show genres, and to get movies associated with a specific genre.

## Structs

### `Genres`

Represents the TMDb Genres API, allowing you to query for genre-related information.

#### Methods

- `new(id: Option<i32>) -> Self`: Creates a new `Genres` instance. An optional `id` can be provided for genre-specific operations.
- `movie_list(options: Option<HashMap<String, String>>) -> Result<Value, Box<dyn std::error::Error>>`: Retrieves a list of movie genres.
- `tv_list(options: Option<HashMap<String, String>>) -> Result<Value, Box<dyn std::error::Error>>`: Retrieves a list of TV show genres.
- `movies(options: Option<HashMap<String, String>>) -> Result<Value, Box<dyn std::error::Error>>`: Retrieves movies associated with the genre ID provided during `Genres` instantiation.