pub struct Playlist {
pub id: String,
pub name: String,
pub tracks: Vec<String>,
pub image_tag: Option<String>,
pub cover_path: Option<PathBuf>,
}Expand description
One playlist. tracks are opaque refs — a filesystem path string for local
playlists, an item/video id for a server. Which source these belong to is
context (the active source the store was loaded for), not per-row state, so
there’s no source field and no local/server type split. The path↔file
conversion happens only at the player’s resolve boundary, not here.
Fields§
§id: String§name: String§tracks: Vec<String>§image_tag: Option<String>Server cover-version tag (server playlists only; None for local).
cover_path: Option<PathBuf>Trait Implementations§
impl StructuralPartialEq for Playlist
Auto Trait Implementations§
impl Freeze for Playlist
impl RefUnwindSafe for Playlist
impl Send for Playlist
impl Sync for Playlist
impl Unpin for Playlist
impl UnsafeUnpin for Playlist
impl UnwindSafe for Playlist
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