1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
//! All object related to category
use super::image::Image;
use super::page::Page;
/// category object
///[category object](https://developer.spotify.com/web-api/get-list-categories/#categoryobject)
#[derive(Clone, Debug, Serialize, Deserialize)]
pub struct Category {
    pub href: String,
    pub icons: Vec<Image>,
    pub id: String,
    pub name: String,
}

/// Categories wrapped by page object
///[get list categories](https://developer.spotify.com/web-api/get-list-categories/)
#[derive(Clone, Debug, Serialize, Deserialize)]
pub struct PageCategory {
    pub categories: Page<Category>,
}