[][src]Struct rustfm_scrobble::responses::values::CorrectableString

pub struct CorrectableString {
    pub corrected: bool,
    pub text: String,
}

Represents a string that can be marked as 'corrected' by the Last.fm API.

All Scrobble/NowPlaying responses have their fields as CorrectableString's. The API will sometimes change the artist/song name/album name data that you have submitted. For example - it is common for Bjork to be turned into Björk by the API; the modified artist field would be marked corrected = true, `text = "Björk".

Most clients can ignore these corrections, but the information is exposed for clients that require it.

Meta-Data Correction Documentation

Fields

corrected: booltext: String

Trait Implementations

impl Debug for CorrectableString[src]

impl<'de> Deserialize<'de> for CorrectableString[src]

impl Display for CorrectableString[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.