pub struct Audio { /* private fields */ }
Expand description
Describes an audio file. Audio is usually in MP3 or M4A format
Implementations§
Source§impl Audio
impl Audio
pub fn from_json<S: AsRef<str>>(json: S) -> Result<Self>
pub fn builder() -> AudioBuilder
pub fn duration(&self) -> i32
pub fn title(&self) -> &String
pub fn performer(&self) -> &String
pub fn file_name(&self) -> &String
pub fn mime_type(&self) -> &String
pub fn album_cover_minithumbnail(&self) -> &Option<Minithumbnail>
pub fn album_cover_thumbnail(&self) -> &Option<Thumbnail>
pub fn audio(&self) -> &File
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Audio
impl<'de> Deserialize<'de> for Audio
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 Audio
impl RefUnwindSafe for Audio
impl Send for Audio
impl Sync for Audio
impl Unpin for Audio
impl UnwindSafe for Audio
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