Struct spotifyrs::SpotifyCollection
source · pub struct SpotifyCollection<T: SpotifyObject + Debug> {
pub href: String,
pub items: Vec<T>,
pub limit: i32,
pub next: Option<String>,
pub offset: i32,
pub previous: Option<String>,
pub total: i32,
}
Expand description
Struct to hold general collection of Spotify objects
Fields§
§href: String
§items: Vec<T>
§limit: i32
§next: Option<String>
§offset: i32
§previous: Option<String>
§total: i32
Implementations§
source§impl<T: SpotifyObject + Debug> SpotifyCollection<T>
impl<T: SpotifyObject + Debug> SpotifyCollection<T>
sourcepub fn new(raw_object: &JsonValue) -> SpotifyCollection<T>
pub fn new(raw_object: &JsonValue) -> SpotifyCollection<T>
Takes JsonValue representing a collection of spotify objects and returns SpotifyCollection of objects
Arguments
raw_object
- JsonValue representing a collection of spotify objects
Trait Implementations§
Auto Trait Implementations§
impl<T> RefUnwindSafe for SpotifyCollection<T>where T: RefUnwindSafe,
impl<T> Send for SpotifyCollection<T>where T: Send,
impl<T> Sync for SpotifyCollection<T>where T: Sync,
impl<T> Unpin for SpotifyCollection<T>where T: Unpin,
impl<T> UnwindSafe for SpotifyCollection<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