pub struct Playlist {
pub name: String,
pub tracks: Vec<Track>,
}Expand description
Struct representing a playlist in the music library.
Fields§
§name: StringThe name of the playlist.
Playlist names are unique.
tracks: Vec<Track>The content of the playlist.
All tracks must already be in the music library. If a track is removed from the library (eg. by removing an audio file from the music directory and reloading the library), it will also be removed from all the playlists.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Playlist
impl<'de> Deserialize<'de> for Playlist
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 Playlist
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