Struct rspotify_model::track::ItemPositions
source · pub struct ItemPositions<'a> {
pub id: PlayableId<'a>,
pub positions: &'a [u32],
}
Expand description
Track id with specific positions track in a playlist
This is a short-lived struct for endpoint parameters, so it uses
PlayableId<'a>
instead of PlayableId<'static>
to avoid the unnecessary
allocation. Same goes for the positions slice instead of vector.
Fields§
§id: PlayableId<'a>
§positions: &'a [u32]
Auto Trait Implementations§
impl<'a> Freeze for ItemPositions<'a>
impl<'a> RefUnwindSafe for ItemPositions<'a>
impl<'a> Send for ItemPositions<'a>
impl<'a> Sync for ItemPositions<'a>
impl<'a> Unpin for ItemPositions<'a>
impl<'a> UnwindSafe for ItemPositions<'a>
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