[][src]Struct rtdlib::types::Audio

pub struct Audio { /* fields omitted */ }

Describes an audio file. Audio is usually in MP3 or M4A format

Implementations

impl Audio[src]

pub fn from_json<S: AsRef<str>>(json: S) -> RTDResult<Self>[src]

pub fn builder() -> RTDAudioBuilder[src]

pub fn duration(&self) -> i64[src]

pub fn title(&self) -> &String[src]

pub fn performer(&self) -> &String[src]

pub fn file_name(&self) -> &String[src]

pub fn mime_type(&self) -> &String[src]

pub fn album_cover_minithumbnail(&self) -> &Option<Minithumbnail>[src]

pub fn album_cover_thumbnail(&self) -> &Option<PhotoSize>[src]

pub fn audio(&self) -> &File[src]

Trait Implementations

impl AsRef<Audio> for Audio[src]

impl Clone for Audio[src]

impl Debug for Audio[src]

impl Default for Audio[src]

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

impl RObject for Audio[src]

impl Serialize for Audio[src]

Auto Trait Implementations

impl RefUnwindSafe for Audio

impl Send for Audio

impl Sync for Audio

impl Unpin for Audio

impl UnwindSafe for Audio

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> 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.