pub struct Audio {
pub duration: i32,
pub title: String,
pub performer: String,
pub file_name: String,
pub mime_type: String,
pub album_cover_thumbnail: Option<PhotoSize>,
pub audio: File,
}Expand description
Describes an audio file. Audio is usually in MP3 format
Fields§
§duration: i32Duration of the audio, in seconds; as defined by the sender
title: StringTitle of the audio; as defined by the sender
performer: StringPerformer of the audio; as defined by the sender
file_name: StringOriginal name of the file; as defined by the sender
mime_type: StringThe MIME type of the file; as defined by the sender
album_cover_thumbnail: Option<PhotoSize>The thumbnail of the album cover; as defined by the sender. The full size thumbnail should be extracted from the downloaded file; may be null
audio: FileFile 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
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