pub struct MusicLibrary {
pub playlists: Vec<Playlist>,
pub tracks: Vec<Track>,
}Expand description
Struct representing the contents of the music library.
Fields§
§playlists: Vec<Playlist>The list of playlists in the music library.
tracks: Vec<Track>The list of all tracks in the music library.
Trait Implementations§
Source§impl Clone for MusicLibrary
impl Clone for MusicLibrary
Source§fn clone(&self) -> MusicLibrary
fn clone(&self) -> MusicLibrary
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MusicLibrary
impl Debug for MusicLibrary
Source§impl<'de> Deserialize<'de> for MusicLibrary
impl<'de> Deserialize<'de> for MusicLibrary
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
Source§impl Hash for MusicLibrary
impl Hash for MusicLibrary
Source§impl PartialEq for MusicLibrary
impl PartialEq for MusicLibrary
Source§fn eq(&self, other: &MusicLibrary) -> bool
fn eq(&self, other: &MusicLibrary) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for MusicLibrary
impl Serialize for MusicLibrary
impl Eq for MusicLibrary
impl StructuralPartialEq for MusicLibrary
Auto Trait Implementations§
impl Freeze for MusicLibrary
impl RefUnwindSafe for MusicLibrary
impl Send for MusicLibrary
impl Sync for MusicLibrary
impl Unpin for MusicLibrary
impl UnsafeUnpin for MusicLibrary
impl UnwindSafe for MusicLibrary
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