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>,
}
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>
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Audio
impl<'de> Deserialize<'de> for Audio
sourcefn 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 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more