correct compilation warning in pmoqobuz
This commit is contained in:
@@ -18,11 +18,11 @@ struct UserInfo {
|
||||
#[serde(deserialize_with = "crate::models::deserialize_id")]
|
||||
id: String,
|
||||
#[serde(default)]
|
||||
email: Option<String>,
|
||||
_email: Option<String>,
|
||||
#[serde(default)]
|
||||
firstname: Option<String>,
|
||||
_firstname: Option<String>,
|
||||
#[serde(default)]
|
||||
lastname: Option<String>,
|
||||
_lastname: Option<String>,
|
||||
credential: CredentialInfo,
|
||||
}
|
||||
|
||||
|
||||
@@ -13,9 +13,9 @@ struct PaginatedResponse<T> {
|
||||
#[serde(default)]
|
||||
total: Option<u32>,
|
||||
#[serde(default)]
|
||||
limit: Option<u32>,
|
||||
_limit: Option<u32>,
|
||||
#[serde(default)]
|
||||
offset: Option<u32>,
|
||||
_offset: Option<u32>,
|
||||
}
|
||||
|
||||
/// Réponse de l'endpoint /album/get
|
||||
@@ -91,7 +91,7 @@ struct ImageResponse {
|
||||
|
||||
/// Réponse genre
|
||||
#[derive(Debug, Deserialize)]
|
||||
struct GenreResponse {
|
||||
pub(crate) struct GenreResponse {
|
||||
#[serde(default)]
|
||||
id: Option<u32>,
|
||||
name: String,
|
||||
|
||||
@@ -15,7 +15,7 @@ struct PaginatedResponse<T> {
|
||||
|
||||
/// Réponse de l'endpoint /favorite/getUserFavorites
|
||||
#[derive(Debug, Deserialize)]
|
||||
pub(crate) struct FavoritesResponse {
|
||||
pub struct FavoritesResponse {
|
||||
#[serde(default)]
|
||||
albums: Option<PaginatedResponse<AlbumResponse>>,
|
||||
#[serde(default)]
|
||||
|
||||
Reference in New Issue
Block a user