pub enum Resource {
Show 20 variants
Activity {
data: Activity,
},
Album {
data: Album,
},
Artist {
data: Artist,
},
AppleCurator {
data: AppleCurator,
},
Curator {
data: Curator,
},
Genre {
data: Genre,
},
MusicVideo {
data: MusicVideo,
},
PersonalRecommendation {
data: PersonalRecommendation,
},
Playlist {
data: Playlist,
},
Rating {
data: Rating,
},
RecordLabel {
data: RecordLabel,
},
Song {
data: Song,
},
Station {
data: Station,
},
StationGenre {
data: StationGenre,
},
LibraryAlbum {
data: LibraryAlbum,
},
LibraryArtist {
data: LibraryArtist,
},
LibraryMusicVideo {
data: LibraryMusicVideo,
},
LibraryPlaylist {
data: LibraryPlaylist,
},
LibraryPlaylistFolder {
data: LibraryPlaylistFolder,
},
LibrarySong {
data: LibrarySong,
},
}Expand description
Apple music resource data
Variants§
Activity
activities
Album
albums
Artist
artists
AppleCurator
apple-curators
Fields
§
data: AppleCuratorData
Curator
curators
Genre
genres
MusicVideo
music-videos
Fields
§
data: MusicVideoData
PersonalRecommendation
personal-recommendation
Fields
§
data: PersonalRecommendationData
Playlist
playlists
Rating
ratings
RecordLabel
record-labels
Fields
§
data: RecordLabelData
Song
songs
Station
stations
StationGenre
station-genres
Fields
§
data: StationGenreData
LibraryAlbum
library-albums
Fields
§
data: LibraryAlbumData
LibraryArtist
library-artists
Fields
§
data: LibraryArtistData
LibraryMusicVideo
library-music-videos
Fields
§
data: LibraryMusicVideoData
LibraryPlaylist
library-playlists
Fields
§
data: LibraryPlaylistData
LibraryPlaylistFolder
library-playlist-folders
Fields
§
data: LibraryPlaylistFolderData
LibrarySong
library-songs
Fields
§
data: LibrarySongData
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Resource
impl<'de> Deserialize<'de> for Resource
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 From<AppleCurator> for Resource
impl From<AppleCurator> for Resource
Source§fn from(data: AppleCurator) -> Self
fn from(data: AppleCurator) -> Self
Converts to this type from the input type.
Source§impl From<LibraryAlbum> for Resource
impl From<LibraryAlbum> for Resource
Source§fn from(data: LibraryAlbum) -> Self
fn from(data: LibraryAlbum) -> Self
Converts to this type from the input type.
Source§impl From<LibraryArtist> for Resource
impl From<LibraryArtist> for Resource
Source§fn from(data: LibraryArtist) -> Self
fn from(data: LibraryArtist) -> Self
Converts to this type from the input type.
Source§impl From<LibraryMusicVideo> for Resource
impl From<LibraryMusicVideo> for Resource
Source§fn from(data: LibraryMusicVideo) -> Self
fn from(data: LibraryMusicVideo) -> Self
Converts to this type from the input type.
Source§impl From<LibraryPlaylist> for Resource
impl From<LibraryPlaylist> for Resource
Source§fn from(data: LibraryPlaylist) -> Self
fn from(data: LibraryPlaylist) -> Self
Converts to this type from the input type.
Source§impl From<LibraryPlaylistFolder> for Resource
impl From<LibraryPlaylistFolder> for Resource
Source§fn from(data: LibraryPlaylistFolder) -> Self
fn from(data: LibraryPlaylistFolder) -> Self
Converts to this type from the input type.
Source§impl From<LibrarySong> for Resource
impl From<LibrarySong> for Resource
Source§fn from(data: LibrarySong) -> Self
fn from(data: LibrarySong) -> Self
Converts to this type from the input type.
Source§impl From<MusicVideo> for Resource
impl From<MusicVideo> for Resource
Source§fn from(data: MusicVideo) -> Self
fn from(data: MusicVideo) -> Self
Converts to this type from the input type.
Source§impl From<PersonalRecommendation> for Resource
impl From<PersonalRecommendation> for Resource
Source§fn from(data: PersonalRecommendation) -> Self
fn from(data: PersonalRecommendation) -> Self
Converts to this type from the input type.
Source§impl From<RecordLabel> for Resource
impl From<RecordLabel> for Resource
Source§fn from(data: RecordLabel) -> Self
fn from(data: RecordLabel) -> Self
Converts to this type from the input type.
Source§impl From<StationGenre> for Resource
impl From<StationGenre> for Resource
Source§fn from(data: StationGenre) -> Self
fn from(data: StationGenre) -> Self
Converts to this type from the input type.
Source§impl ResourceInfo for Resource
impl ResourceInfo for Resource
Source§fn get_header(&self) -> &ResourceHeader
fn get_header(&self) -> &ResourceHeader
Get header
impl Eq for Resource
impl StructuralPartialEq for Resource
Auto Trait Implementations§
impl Freeze for Resource
impl RefUnwindSafe for Resource
impl Send for Resource
impl Sync for Resource
impl Unpin for Resource
impl UnwindSafe for Resource
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