1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
//! Deezer Flow personalized radio endpoint.
//!
//! This module handles fetching tracks for Deezer Flow, a personalized
//! radio stream that provides batches of recommended tracks based on user
//! preferences and listening history.
//!
//! # Wire Format
//!
//! Request:
//! ```json
//! {
//! "user_id": "123456789"
//! }
//! ```
//!
//! Response contains a list of tracks in the same format as [`ListData`].
//!
//! # Example
//!
//! ```rust
//! use deezer::gateway::{Response, UserRadio, UserId};
//!
//! // Request Flow tracks
//! let request = Request {
//! user_id: 123456789.into(),
//! };
//!
//! let response: Response<UserRadio> = /* gateway response */;
//! for track in response.all() {
//! println!("Flow track: {} by {}", track.title, track.artist);
//! }
//! ```
use Deref;
use ;
use ;
use ;
use crateUserId;
/// Wrapper for Flow radio track data.
///
/// Contains the same track information as [`ListData`] but specifically
/// for tracks provided by Deezer Flow. Each response contains multiple
/// recommended tracks.
;
/// Request parameters for Flow radio tracks.
///
/// Used to request the next track in a user's personalized Flow stream.