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: FileMeta
Metadata of the audio file.
duration: u32
A 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<Audio, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<Audio, <__D as Deserializer<'de>>::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
source§impl Serialize for Audio
impl Serialize for Audio
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. 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§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.