pub struct Audio {
pub file: FileMeta,
pub duration: u32,
pub performer: Option<String>,
pub title: Option<String>,
pub file_name: Option<String>,
pub mime_type: Option<Mime>,
pub thumb: Option<PhotoSize>,
}Expand description
This object represents an audio file to be treated as music by the Telegram clients.
Fields§
§file: FileMetaMetadata of the audio file.
duration: u32A duration of the audio in seconds as defined by a sender.
performer: Option<String>A performer of the audio as defined by a sender or by audio tags.
title: Option<String>A title of the audio as defined by sender or by audio tags.
file_name: Option<String>Original filename as defined by sender
mime_type: Option<Mime>A MIME type of the file as defined by a sender.
thumb: Option<PhotoSize>A thumbnail of the album cover to which the music file belongs.
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
source§impl PartialEq<Audio> for Audio
impl PartialEq<Audio> for Audio
impl Eq for Audio
impl StructuralEq for Audio
impl StructuralPartialEq for Audio
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§
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