Struct mpd::song::Song [] [src]

pub struct Song {
    pub file: String,
    pub name: Option<String>,
    pub last_mod: Option<Tm>,
    pub duration: Option<Duration>,
    pub place: Option<QueuePlace>,
    pub range: Option<Range>,
    pub tags: BTreeMap<StringString>,
}

Song data

Fields

file: String

filename

name: Option<String>

name (for streams)

last_mod: Option<Tm>

last modification time

duration: Option<Duration>

duration (in seconds resolution)

place: Option<QueuePlace>

place in the queue (if queued for playback)

range: Option<Range>

range to play (if queued for playback and range was set)

tags: BTreeMap<StringString>

arbitrary tags, like album, artist etc

Methods

impl Song
[src]

fn from_map(map: BTreeMap<StringString>) -> Result<SongError>

build song from map

Trait Implementations

impl PartialEq for Song
[src]

fn eq(&self, __arg_0: &Song) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, __arg_0: &Song) -> bool

This method tests for !=.

impl Clone for Song
[src]

fn clone(&self) -> Song

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl Debug for Song
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.