Struct GetStationResponse

Source
pub struct GetStationResponse {
Show 18 fields pub station_id: String, pub station_token: String, pub station_name: String, pub allow_add_music: Option<bool>, pub suppress_video_ads: Option<bool>, pub date_created: Timestamp, pub station_detail_url: Option<String>, pub art_url: Option<String>, pub requires_clean_ads: Option<bool>, pub music: Option<StationSeeds>, pub is_shared: Option<bool>, pub allow_delete: Option<bool>, pub genre: Vec<String>, pub is_quick_mix: Option<bool>, pub allow_rename: Option<bool>, pub station_sharing_url: Option<String>, pub allow_edit_description: Option<bool>, pub feedback: Option<StationFeedback>,
}
Expand description

| Name | Type | Description | | music | object | Station seeds, see Add seed | | music.songs | list | Song seeds | | music.artists | list | Artist seeds | | feedback | object | Feedback added by Rate track | | feedback.thumbsUp | list | | | feedback.thumbsDown | list | |

{
    "stat": "ok",
    "result": {
        "suppressVideoAds": false,
        "stationId": "374145764047334893",
        "allowAddMusic": true,
        "dateCreated": {
            "date": 15,
            "day": 6,
            "hours": 7,
            "minutes": 34,
            "month": 0,
            "nanos": 874000000,
            "seconds": 21,
            "time": 1295105661874,
            "timezoneOffset": 480,
            "year": 111
        },
        "stationDetailUrl": "https://www.pandora.com/login?target=%2Fstations%2Fc644756145fc3f5df1916901125ee697495159685ae39575",
        "artUrl": "http://cont-1.p-cdn.com/images/public/amz/5/2/8/5/075678235825_500W_498H.jpg",
        "requiresCleanAds": false,
        "stationToken": "374145764047334893",
        "stationName": "Winter Radio",
        "music": {
            "songs": [{
                "seedId": "428301990230109677",
                "artistName": "Tori Amos",
                "artUrl": "http://cont-sjl-1.pandora.com/images/public/amz/5/2/8/5/075678235825_130W_130H.jpg",
                "songName": "Winter",
                "musicToken": "87ef9db1c3f04330"
            }],
            "artists": [{
                "artistName": "Jason Derulo",
                "musicToken": "563f577e00d837a5",
                "seedId": "31525199612287328",
                "artUrl": "http://mediaserver-cont-sv5-1-v4v6.pandora.com/images/public/amg/portrait/pic200/drQ300/Q366/Q36675SDAPJ.jpg"
            }],
            "genres": [{
                "musicToken": "cc021b31a48b8acf",
                "genreName": "Today's Hits",
                "seedId": "31525199599467854"
            }]
        },
        "isShared": false,
        "allowDelete": true,
        "genre": ["Rock"],
        "isQuickMix": false,
        "allowRename": true,
        "stationSharingUrl": "https://www.pandora.com/login?target=%2Fshare%2Fstation%2Fc644756145fc3f5df1916901125ee697495159685ae39575",
        "allowEditDescription": true,
        "feedback": {
            "thumbsUp": [{
                "dateCreated": {
                    "date": 28,
                    "day": 5,
                    "hours": 13,
                    "minutes": 57,
                    "month": 2,
                    "nanos": 760000000,
                    "seconds": 49,
                    "time": 1396040269760,
                    "timezoneOffset": 420,
                    "year": 114
                },
                "albumArtUrl": "http://cont-1.p-cdn.com/images/public/amz/9/7/1/4/900004179_130W_130H.jpg",
                "musicToken": "d33dd0c199ebaf28425ba2910f7abf8b",
                "songName": "Hey Lover",
                "artistName": "Keri Noble",
                "feedbackId": "-7239441039566426643",
                "isPositive": true
            }],
            "totalThumbsUp": 20,
            "totalThumbsDown": 5,
            "thumbsDown": [{
                "dateCreated": {
                    "date": 28,
                    "day": 5,
                    "hours": 10,
                    "minutes": 43,
                    "month": 2,
                    "nanos": 637000000,
                    "seconds": 30,
                    "time": 1396028610637,
                    "timezoneOffset": 420,
                    "year": 114
                },
                "albumArtUrl": "http://cont-ch1-1.pandora.com/images/public/amz/9/0/5/1/724383771509_130W_130H.jpg",
                "musicToken": "5a0018da7876f6e7",
                "songName": "Talk Show Host",
                "artistName": "Radiohead",
                "feedbackId": "-7241622182873125395",
                "isPositive": false
            }]
        }
    }
}

Fields§

§station_id: String

The unique id (token) for the station for which information was requested. The stationId (station_id) and stationToken (station_token) attributes appear to be duplicates.

§station_token: String

The unique id (token) for the station for which information was requested. The stationId (station_id) and stationToken (station_token) attributes appear to be duplicates.

§station_name: String

The user-created name of the station.

§allow_add_music: Option<bool>

Whether the station allows adding music to it.

§suppress_video_ads: Option<bool>

Unknown

§date_created: Timestamp

When the station was created.

§station_detail_url: Option<String>

Unknown

§art_url: Option<String>

Unknown

§requires_clean_ads: Option<bool>

Unknown

§music: Option<StationSeeds>

Station music seeds.

§is_shared: Option<bool>

Whether the station is visible for sharing.

§allow_delete: Option<bool>

Whether the station can be deleted.

§genre: Vec<String>

The genre(s) the station belongs to.

§is_quick_mix: Option<bool>

Whether this is a QuickMix station.

§allow_rename: Option<bool>

Whether the station may be renamed.

§station_sharing_url: Option<String>

The URL to use for sharing this station.

§allow_edit_description: Option<bool>

Whether the description for this station may be edited.

§feedback: Option<StationFeedback>

Feedback submitted for tracks on this station.

Trait Implementations§

Source§

impl Clone for GetStationResponse

Source§

fn clone(&self) -> GetStationResponse

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 GetStationResponse

Source§

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

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

impl<'de> Deserialize<'de> for GetStationResponse

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>,

Source§

impl<T> ErasedDestructor for T
where T: 'static,