pub struct CorrectableString {
pub corrected: bool,
pub text: String,
}
Expand description
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.
Fields§
§corrected: bool
§text: String
Trait Implementations§
Source§impl Debug for CorrectableString
impl Debug for CorrectableString
Source§impl<'de> Deserialize<'de> for CorrectableString
impl<'de> Deserialize<'de> for CorrectableString
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
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§
impl Freeze for CorrectableString
impl RefUnwindSafe for CorrectableString
impl Send for CorrectableString
impl Sync for CorrectableString
impl Unpin for CorrectableString
impl UnwindSafe for CorrectableString
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more