Struct rspotify_model::page::CursorBasedPage
source · [−]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
sourceimpl<T: Clone> Clone for CursorBasedPage<T>
impl<T: Clone> Clone for CursorBasedPage<T>
sourcefn clone(&self) -> CursorBasedPage<T>
fn clone(&self) -> CursorBasedPage<T>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<T: Debug> Debug for CursorBasedPage<T>
impl<T: Debug> Debug for CursorBasedPage<T>
sourceimpl<T: Default> Default for CursorBasedPage<T>
impl<T: Default> Default for CursorBasedPage<T>
sourcefn default() -> CursorBasedPage<T>
fn default() -> CursorBasedPage<T>
Returns the “default value” for a type. Read more
sourceimpl<'de, T> Deserialize<'de> for CursorBasedPage<T> where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for CursorBasedPage<T> where
T: Deserialize<'de>,
sourcefn 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
sourceimpl<T: PartialEq> PartialEq<CursorBasedPage<T>> for CursorBasedPage<T>
impl<T: PartialEq> PartialEq<CursorBasedPage<T>> for CursorBasedPage<T>
sourcefn eq(&self, other: &CursorBasedPage<T>) -> bool
fn eq(&self, other: &CursorBasedPage<T>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &CursorBasedPage<T>) -> bool
fn ne(&self, other: &CursorBasedPage<T>) -> bool
This method tests for !=
.
sourceimpl<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> StructuralEq for CursorBasedPage<T>
impl<T> StructuralPartialEq for CursorBasedPage<T>
Auto Trait Implementations
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> UnwindSafe for CursorBasedPage<T> where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more