pub struct TrackPage {
pub tracks: Vec<Track>,
pub page_number: u32,
pub has_next_page: bool,
pub total_pages: Option<u32>,
}Expand description
Represents a paginated collection of tracks.
This structure is returned by track listing methods and provides information about the current page and pagination state.
Fields§
§tracks: Vec<Track>The tracks on this page
page_number: u32Current page number (1-indexed)
has_next_page: boolWhether there are more pages available
total_pages: Option<u32>Total number of pages, if known
This may be None if the total page count cannot be determined
from the Last.fm response.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TrackPage
impl<'de> Deserialize<'de> for TrackPage
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
impl Eq for TrackPage
impl StructuralPartialEq for TrackPage
Auto Trait Implementations§
impl Freeze for TrackPage
impl RefUnwindSafe for TrackPage
impl Send for TrackPage
impl Sync for TrackPage
impl Unpin for TrackPage
impl UnwindSafe for TrackPage
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.