pub fn rate<T>(&self, track: T, is_positive: bool) -> Result<()>
        where T: ToTrackToken
    {
        self.pandora
            .post_noop(Method::StationAddFeedback,
                       Some(serde_json::to_value(RateTrackRequest {
                                                     station_token: self.station_token.clone(),
                                                     track_token: track
                                                         .to_track_token()
                                                         .unwrap_or("".to_owned()),
                                                     is_positive: is_positive,
                                                 })))
    }
// TODO: Result should not be empty
/// Rates a track.
Result should not be empty
Rates a track.
Result should not be empty Rates a track .
pub fn rate<T>(&self, track: T, is_positive: bool) -> Result<()>
        where T: ToTrackToken
    {
        self.pandora
            .post_noop(Method::StationAddFeedback,
                       Some(serde_json::to_value(RateTrackRequest {
                                                     station_token: self.station_token.clone(),
                                                     track_token: track
                                                         .to_track_token()
                                                         .unwrap_or("".to_owned()),
                                                     is_positive: is_positive,
                                                 })))
    }
pub fn rate < T > ( & self , track : T , is_positive : bool ) -> Result < ( ) > where T : ToTrackToken { self . pandora . post_noop ( Method :: StationAddFeedback , Some ( serde_json :: to_value ( RateTrackRequest { station_token : self . station_token . clone ( ) , track_token : track . to_track_token ( ) . unwrap_or ( " " . to_owned ( ) ) , is_positive : is_positive , } ) ) ) }
TODO: Result should not be empty
Rates a track.
TODO : Result should not be empty Rates a track .
&self
track
T
is_positive
bool
&self
track
T
is_positive
bool