[][src]Struct lastfm_parse_rs::structs::track::ScrobbleTrack

pub struct ScrobbleTrack {
    pub artist: String,
    pub track: String,
    pub timestamp_utc: UnixTimestamp,
    pub album: Option<String>,
    pub track_number: Option<u32>,
    pub duration: Option<u32>,
    pub mbid: Option<String>,
    pub album_artist: Option<String>,
    pub chosen_by_user: Option<bool>,
}

Fields

artist: Stringtrack: Stringtimestamp_utc: UnixTimestampalbum: Option<String>track_number: Option<u32>duration: Option<u32>mbid: Option<String>album_artist: Option<String>chosen_by_user: Option<bool>

Methods

impl ScrobbleTrack[src]

pub fn new(
    artist: String,
    track: String,
    timestamp_utc: UnixTimestamp
) -> ScrobbleTrack
[src]

pub fn info(
    self,
    album: Option<String>,
    track_number: Option<u32>,
    duration: Option<u32>
) -> ScrobbleTrack
[src]

pub fn info2(
    self,
    mbid: Option<String>,
    album_artist: Option<String>,
    chosen_by_user: Option<bool>
) -> ScrobbleTrack
[src]

Trait Implementations

impl Debug for ScrobbleTrack[src]

impl Hash for ScrobbleTrack[src]

Auto Trait Implementations

impl RefUnwindSafe for ScrobbleTrack

impl Send for ScrobbleTrack

impl Sync for ScrobbleTrack

impl Unpin for ScrobbleTrack

impl UnwindSafe for ScrobbleTrack

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> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[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.