Struct telegram_types::bot::types::Audio
source · pub struct Audio {
pub file_id: FileId,
pub duration: i32,
pub performer: Option<String>,
pub title: Option<String>,
pub mime_type: Option<String>,
pub file_size: Option<i32>,
pub thumb: Option<PhotoSize>,
}
Expand description
An audio file to be treated as music by the Telegram clients.
Fields§
§file_id: FileId
Unique identifier for this file
duration: i32
Duration of the audio in seconds as defined by sender
performer: Option<String>
Performer of the audio as defined by sender or by audio tags
title: Option<String>
Title of the audio as defined by sender or by audio tags
mime_type: Option<String>
MIME type of the file as defined by sender
file_size: Option<i32>
§thumb: Option<PhotoSize>
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
impl Eq for Audio
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)