[][src]Trait lastfm_parse_rs::lastfm_type::LastfmType

pub trait LastfmType<'de> where
    Self: Sized + Deserialize<'de>, 
{ type Outer: Deserialize<'de> + Debug + Into<Self>; }

All lastfm json data types are wrapped with an extra object. Like this: { tag: { /* actual fields */ } } While Rust object structure has to match json's in order for serde to work, this extra wrapping is not very convenient from users perspective. This trait indicates that type is wrapped and provides deserializable wrapper struct type along with inner type conversion. This trait is used internally to automatically generate wrapper objects and hide them from user (see lastfm_t! macro).

Associated Types

type Outer: Deserialize<'de> + Debug + Into<Self>

Loading content...

Implementors

impl<'dt> LastfmType<'dt> for lastfm_parse_rs::structs::album::AddTags<'dt>[src]

type Outer = Self

impl<'dt> LastfmType<'dt> for lastfm_parse_rs::structs::album::GetInfo<'dt>[src]

type Outer = _Info<'dt>

impl<'dt> LastfmType<'dt> for lastfm_parse_rs::structs::album::GetTopTags<'dt>[src]

type Outer = _TopTags<'dt>

impl<'dt> LastfmType<'dt> for lastfm_parse_rs::structs::album::RemoveTag<'dt>[src]

type Outer = Self

impl<'dt> LastfmType<'dt> for lastfm_parse_rs::structs::album::Search<'dt>[src]

type Outer = _Search<'dt>

impl<'dt> LastfmType<'dt> for lastfm_parse_rs::structs::artist::AddTags<'dt>[src]

type Outer = Self

impl<'dt> LastfmType<'dt> for lastfm_parse_rs::structs::artist::GetCorrections<'dt>[src]

type Outer = _Corrections<'dt>

impl<'dt> LastfmType<'dt> for lastfm_parse_rs::structs::artist::GetInfo<'dt>[src]

type Outer = _Info<'dt>

impl<'dt> LastfmType<'dt> for lastfm_parse_rs::structs::artist::GetSimilar<'dt>[src]

type Outer = _SimilarList<'dt>

impl<'dt> LastfmType<'dt> for lastfm_parse_rs::structs::artist::GetTopAlbums<'dt>[src]

type Outer = _TopAlbums<'dt>

impl<'dt> LastfmType<'dt> for lastfm_parse_rs::structs::artist::GetTopTags<'dt>[src]

type Outer = _TopTags<'dt>

impl<'dt> LastfmType<'dt> for lastfm_parse_rs::structs::artist::GetTopTracks<'dt>[src]

type Outer = _TopTracks<'dt>

impl<'dt> LastfmType<'dt> for lastfm_parse_rs::structs::artist::RemoveTag<'dt>[src]

type Outer = Self

impl<'dt> LastfmType<'dt> for lastfm_parse_rs::structs::artist::Search<'dt>[src]

type Outer = _Search<'dt>

impl<'dt> LastfmType<'dt> for GetMobileSession<'dt>[src]

impl<'dt> LastfmType<'dt> for GetSession<'dt>[src]

type Outer = _GetSession<'dt>

impl<'dt> LastfmType<'dt> for GetToken<'dt>[src]

type Outer = Self

impl<'dt> LastfmType<'dt> for lastfm_parse_rs::structs::chart::GetTopArtists<'dt>[src]

type Outer = _TopArtists<'dt>

impl<'dt> LastfmType<'dt> for lastfm_parse_rs::structs::chart::GetTopTags<'dt>[src]

type Outer = _TopTags<'dt>

impl<'dt> LastfmType<'dt> for lastfm_parse_rs::structs::chart::GetTopTracks<'dt>[src]

type Outer = _TopTracks<'dt>

impl<'dt> LastfmType<'dt> for lastfm_parse_rs::structs::geo::GetTopArtists<'dt>[src]

type Outer = _TopArtists<'dt>

impl<'dt> LastfmType<'dt> for lastfm_parse_rs::structs::geo::GetTopTracks<'dt>[src]

type Outer = _TopTracks<'dt>

impl<'dt> LastfmType<'dt> for GetArtists<'dt>[src]

type Outer = _Artists<'dt>

impl<'dt> LastfmType<'dt> for lastfm_parse_rs::structs::tag::GetInfo<'dt>[src]

type Outer = _Info<'dt>

impl<'dt> LastfmType<'dt> for lastfm_parse_rs::structs::tag::GetSimilar<'dt>[src]

type Outer = _SimilarList<'dt>

impl<'dt> LastfmType<'dt> for lastfm_parse_rs::structs::tag::GetTopAlbums<'dt>[src]

type Outer = _TopAlbums<'dt>

impl<'dt> LastfmType<'dt> for lastfm_parse_rs::structs::tag::GetTopArtists<'dt>[src]

type Outer = _TopArtists<'dt>

impl<'dt> LastfmType<'dt> for lastfm_parse_rs::structs::tag::GetTopTags<'dt>[src]

type Outer = _TopTags<'dt>

impl<'dt> LastfmType<'dt> for lastfm_parse_rs::structs::tag::GetTopTracks<'dt>[src]

type Outer = _TopTracks<'dt>

impl<'dt> LastfmType<'dt> for lastfm_parse_rs::structs::tag::GetWeeklyChartList<'dt>[src]

impl<'dt> LastfmType<'dt> for lastfm_parse_rs::structs::track::AddTags<'dt>[src]

type Outer = Self

impl<'dt> LastfmType<'dt> for lastfm_parse_rs::structs::track::GetCorrections<'dt>[src]

type Outer = _Correction<'dt>

impl<'dt> LastfmType<'dt> for lastfm_parse_rs::structs::track::GetInfo<'dt>[src]

type Outer = _Info<'dt>

impl<'dt> LastfmType<'dt> for lastfm_parse_rs::structs::track::GetSimilar<'dt>[src]

type Outer = _SimilarList<'dt>

impl<'dt> LastfmType<'dt> for lastfm_parse_rs::structs::track::GetTopTags<'dt>[src]

type Outer = _TopTags<'dt>

impl<'dt> LastfmType<'dt> for Love<'dt>[src]

type Outer = Self

impl<'dt> LastfmType<'dt> for lastfm_parse_rs::structs::track::RemoveTag<'dt>[src]

type Outer = Self

impl<'dt> LastfmType<'dt> for Scrobble<'dt>[src]

type Outer = _Scrobble<'dt>

impl<'dt> LastfmType<'dt> for lastfm_parse_rs::structs::track::Search<'dt>[src]

type Outer = _Search<'dt>

impl<'dt> LastfmType<'dt> for Unlove<'dt>[src]

type Outer = Self

impl<'dt> LastfmType<'dt> for UpdateNowPlaying<'dt>[src]

impl<'dt> LastfmType<'dt> for GetFriends<'dt>[src]

type Outer = _Friends<'dt>

impl<'dt> LastfmType<'dt> for lastfm_parse_rs::structs::user::GetInfo<'dt>[src]

type Outer = _Info<'dt>

impl<'dt> LastfmType<'dt> for GetLovedTracks<'dt>[src]

type Outer = _LovedTracks<'dt>

impl<'dt> LastfmType<'dt> for GetRecentTracks<'dt>[src]

type Outer = _RecentTracks<'dt>

impl<'dt> LastfmType<'dt> for GetTaggings<'dt>[src]

type Outer = _Taggings<'dt>

impl<'dt> LastfmType<'dt> for lastfm_parse_rs::structs::user::GetTopAlbums<'dt>[src]

type Outer = _GetTopAlbums<'dt>

impl<'dt> LastfmType<'dt> for lastfm_parse_rs::structs::user::GetTopArtists<'dt>[src]

type Outer = _GetTopArtists<'dt>

impl<'dt> LastfmType<'dt> for lastfm_parse_rs::structs::user::GetTopTags<'dt>[src]

type Outer = _GetTopTags<'dt>

impl<'dt> LastfmType<'dt> for lastfm_parse_rs::structs::user::GetTopTracks<'dt>[src]

type Outer = _GetTopTracks<'dt>

impl<'dt> LastfmType<'dt> for GetWeeklyAlbumChart<'dt>[src]

impl<'dt> LastfmType<'dt> for GetWeeklyArtistChart<'dt>[src]

impl<'dt> LastfmType<'dt> for lastfm_parse_rs::structs::user::GetWeeklyChartList<'dt>[src]

impl<'dt> LastfmType<'dt> for GetWeeklyTrackChart<'dt>[src]

impl<'dt> LastfmType<'dt> for lastfm_parse_rs::structs::album::GetTags<'dt>[src]

type Outer = _UserTags<'dt>

impl<'dt> LastfmType<'dt> for lastfm_parse_rs::structs::artist::GetTags<'dt>[src]

type Outer = _UserTags<'dt>

impl<'dt> LastfmType<'dt> for lastfm_parse_rs::structs::track::GetTags<'dt>[src]

type Outer = _UserTags<'dt>

Loading content...