Skip to main content

GetPlaylistResponse

Struct GetPlaylistResponse 

Source
pub struct GetPlaylistResponse {
    pub items: Vec<PlaylistEntry>,
}
Expand description

| Name | Type | Description | | items.additionalAudioUrl | array/string | List of additional audio urls in the requested order or single string if only one format was requested | | items.songRating | int | 1 if song was given a thumbs up, 0 if song was not rated yet | | items.audioUrlMap | object | Song audio format and bitrates returned differ based on what partner credentials are used. |

{
     "stat": "ok",
     "result": {
         "items": [{
             "trackToken": "40b892bc5376e695c2e5c2b347227b85af2761b6aa417f736d9a79319b8f4cb97c9695a5f9a9a32aa2abaed43571235c",
             "artistName": "Cannabich, Christian",
             "albumName": "London Mozart Players, Christian Cannabich: Symphonies",
             "amazonAlbumUrl": "http://www.amazon.com/dp/B000GW8ATU/?tag=wwwpandoracom-20",
             "songExplorerUrl": "http://www.pandora.com/xml/music/song/london-mozart-players/christian-cannabich-symphonies/2-andantino?explicit=false",
             "albumArtUrl": "http://cont-sv5-2.pandora.com/images/public/amz/5/2/9/7/095115137925_500W_488H.jpg",
             "artistDetailUrl": "http://www.pandora.com/christian-cannabich?...",
             "audioUrlMap": {
                 "highQuality": {
                     "bitrate": "64",
                     "encoding": "aacplus",
                     "audioUrl": "http://audio-sjl-t1-2.pandora.com/access/166132182435087962.mp4?...",
                     "protocol": "http"
                 },
                 "mediumQuality": {
                     "bitrate": "64",
                     "encoding": "aacplus",
                     "audioUrl": "http://t1-2.cdn.pandora.com/access/4127124196771074419.mp4?...",
                     "protocol": "http"
                 },
                 "lowQuality": {
                     "bitrate": "32",
                     "encoding": "aacplus",
                     "audioUrl": "http://audio-sv5-t1-1.pandora.com/access/3464788359714661029.mp4?...",
                     "protocol": "http"
                 }
             },
             "itunesSongUrl": "http://click.linksynergy.com/fs-bin/stat?...",
             "additionalAudioUrl": [
                 "http://t1-2.cdn.pandora.com/access/6705986462049243054.mp4?...",
                 "http://audio-sjl-t1-1.pandora.com/access/2473529637452270302.mp4?..."
             ],
             "amazonAlbumAsin": "B000GW8ATU",
             "amazonAlbumDigitalAsin": "B003H37NN4",
             "artistExplorerUrl": "http://www.pandora.com/xml/music/composer/christian-cannabich?explicit=false",
             "songName": "Symphony In G Major",
             "albumDetailUrl": "http://www.pandora.com/london-mozart-players/christian-cannabich-symphonies?...",
             "songDetailUrl": "http://www.pandora.com/london-mozart-players/christian-cannabich-symphonies/2-andantino?...",
             "stationId": "121193154444133035",
             "songRating": 0,
             "trackGain": "10.09",
             "albumExplorerUrl": "http://www.pandora.com/xml/music/album/london-mozart-players/christian-cannabich-symphonies?explicit=false",
             "allowFeedback": true,
             "amazonSongDigitalAsin": "B003H39AGW",
             "nowPlayingStationAdUrl": "http://ad.doubleclick.net/pfadx/pand.android/prod.nowplaying..."
         }, {
             "adToken": "121193154444133035-none"
         },
         ]
     }
}

Fields§

§items: Vec<PlaylistEntry>

Contains a list of playlist entries, each being either a song/track or an ad.

Trait Implementations§

Source§

impl Clone for GetPlaylistResponse

Source§

fn clone(&self) -> GetPlaylistResponse

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for GetPlaylistResponse

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for GetPlaylistResponse

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,