qobuz_api_rust/api/
content.rs

1/// Qobuz API content modules.
2///
3/// This module contains various submodules that handle different types of content available
4/// through the Qobuz API, including albums, artists, catalogs, labels, playlists, and tracks.
5/// Each submodule provides specific functionality for interacting with the corresponding
6/// content type on the Qobuz platform.
7///
8/// # Example
9///
10/// ```no_run
11/// use qobuz_api_rust::QobuzApiService;
12///
13/// #[tokio::main]
14/// async fn main() -> Result<(), Box<dyn std::error::Error>> {
15///     let service = QobuzApiService::new().await?;
16///
17///     // Search for albums
18///     let albums = service.search_albums("radiohead", Some(10), None, None).await?;
19///
20///     // Get a specific track
21///     let track = service.get_track("12345", None).await?;
22///
23///     Ok(())
24/// }
25/// ```
26/// Album-related API functionality.
27///
28/// This module provides methods for retrieving and searching albums on the Qobuz platform.
29/// It includes functionality for getting detailed album information, searching for albums
30/// by title or artist, and downloading entire albums.
31pub mod albums;
32
33/// Artist-related API functionality.
34///
35/// This module provides methods for retrieving and searching artists on the Qobuz platform.
36/// It includes functionality for getting detailed artist information, searching for artists
37/// by name, and retrieving an artist's discography.
38pub mod artists;
39
40/// Catalog-related API functionality.
41///
42/// This module provides methods for searching the overall Qobuz catalog. It allows searching
43/// across multiple content types (albums, artists, tracks, etc.) with a single query.
44pub mod catalog;
45
46/// Label and article-related API functionality.
47///
48/// This module provides methods for interacting with labels and articles on the Qobuz platform.
49/// It includes functionality for searching articles and retrieving label information.
50pub mod labels_and_articles;
51
52/// Playlist-related API functionality.
53///
54/// This module provides methods for retrieving and searching playlists on the Qobuz platform.
55/// It includes functionality for getting detailed playlist information and searching for
56/// playlists by name or content.
57pub mod playlists;
58
59/// Track-related API functionality.
60///
61/// This module provides methods for retrieving, searching, and downloading tracks on the Qobuz platform.
62/// It includes functionality for getting detailed track information, searching for tracks,
63/// retrieving download URLs, and downloading tracks with embedded metadata.
64pub mod tracks;