pub struct Audio {
pub duration: i32,
pub title: String,
pub performer: String,
pub file_name: String,
pub mime_type: String,
pub album_cover_minithumbnail: Option<Minithumbnail>,
pub album_cover_thumbnail: Option<Thumbnail>,
pub external_album_covers: Vec<Thumbnail>,
pub audio: File,
}
Expand description
Describes an audio file. Audio is usually in MP3 or M4A format
Fields§
§duration: i32
Duration of the audio, in seconds; as defined by the sender
title: String
Title of the audio; as defined by the sender
performer: String
Performer of the audio; as defined by the sender
file_name: String
Original name of the file; as defined by the sender
mime_type: String
The MIME type of the file; as defined by the sender
album_cover_minithumbnail: Option<Minithumbnail>
The minithumbnail of the album cover; may be null
album_cover_thumbnail: Option<Thumbnail>
The thumbnail of the album cover in JPEG format; as defined by the sender. The full size thumbnail is supposed to be extracted from the downloaded audio file; may be null
external_album_covers: Vec<Thumbnail>
Album cover variants to use if the downloaded audio file contains no album cover. Provided thumbnail dimensions are approximate
audio: File
File containing the audio
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
impl StructuralPartialEq for Audio
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