//! All kinds of page object use serde::{Deserialize, Serialize}; /// Paging object #[derive(Clone, Debug, Serialize, Deserialize, PartialEq, Eq, Default)] pub struct Page { pub href: String, pub items: Vec, pub limit: u32, pub next: Option, pub offset: u32, pub previous: Option, pub total: u32, } /// Cursor-based paging object #[derive(Clone, Debug, Serialize, Deserialize, PartialEq, Eq, Default)] pub struct CursorBasedPage { pub href: String, pub items: Vec, pub limit: u32, pub next: Option, pub cursors: Option, /// Absent if it has read all data items. This field doesn't match what /// Spotify document says pub total: Option, } /// Cursor object #[derive(Clone, Debug, Serialize, Deserialize, PartialEq, Eq, Default)] pub struct Cursor { pub after: Option, }