Struct mpris_player::Metadata[][src]

pub struct Metadata {
    pub length: Option<i64>,
    pub art_url: Option<String>,
    pub album: Option<String>,
    pub album_artist: Option<Vec<String>>,
    pub artist: Option<Vec<String>>,
    pub composer: Option<Vec<String>>,
    pub disc_number: Option<i32>,
    pub genre: Option<Vec<String>>,
    pub title: Option<String>,
    pub track_number: Option<i32>,
    pub url: Option<String>,
}

Fields

length: Option<i64>art_url: Option<String>album: Option<String>album_artist: Option<Vec<String>>artist: Option<Vec<String>>composer: Option<Vec<String>>disc_number: Option<i32>genre: Option<Vec<String>>title: Option<String>track_number: Option<i32>url: Option<String>

Implementations

impl Metadata[src]

pub fn new() -> Self[src]

pub fn to_hashmap(&self) -> HashMap<String, Variant<Box<dyn RefArg + 'static>>>[src]

Trait Implementations

impl Clone for Metadata[src]

impl Debug for Metadata[src]

impl PartialEq<Metadata> for Metadata[src]

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.