pub struct CursorBasedPage<T> {
pub href: String,
pub items: Vec<T>,
pub limit: u32,
pub next: Option<String>,
pub cursors: Option<Cursor>,
pub total: Option<u32>,
}Expand description
Cursor-based paging object
Fields§
§href: String§items: Vec<T>§limit: u32§next: Option<String>§cursors: Option<Cursor>§total: Option<u32>Absent if it has read all data items. This field doesn’t match what Spotify document says
Trait Implementations§
Source§impl<T: Clone> Clone for CursorBasedPage<T>
impl<T: Clone> Clone for CursorBasedPage<T>
Source§fn clone(&self) -> CursorBasedPage<T>
fn clone(&self) -> CursorBasedPage<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<T: Debug> Debug for CursorBasedPage<T>
impl<T: Debug> Debug for CursorBasedPage<T>
Source§impl<T: Default> Default for CursorBasedPage<T>
impl<T: Default> Default for CursorBasedPage<T>
Source§fn default() -> CursorBasedPage<T>
fn default() -> CursorBasedPage<T>
Returns the “default value” for a type. Read more
Source§impl<'de, T> Deserialize<'de> for CursorBasedPage<T>where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for CursorBasedPage<T>where
T: Deserialize<'de>,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<T: PartialEq> PartialEq for CursorBasedPage<T>
impl<T: PartialEq> PartialEq for CursorBasedPage<T>
Source§impl<T> Serialize for CursorBasedPage<T>where
T: Serialize,
impl<T> Serialize for CursorBasedPage<T>where
T: Serialize,
impl<T: Eq> Eq for CursorBasedPage<T>
impl<T> StructuralPartialEq for CursorBasedPage<T>
Auto Trait Implementations§
impl<T> Freeze for CursorBasedPage<T>
impl<T> RefUnwindSafe for CursorBasedPage<T>where
T: RefUnwindSafe,
impl<T> Send for CursorBasedPage<T>where
T: Send,
impl<T> Sync for CursorBasedPage<T>where
T: Sync,
impl<T> Unpin for CursorBasedPage<T>where
T: Unpin,
impl<T> UnsafeUnpin for CursorBasedPage<T>
impl<T> UnwindSafe for CursorBasedPage<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more