Struct teloxide_core::types::Audio[][src]

pub struct Audio {
    pub file_id: String,
    pub file_unique_id: String,
    pub duration: u32,
    pub performer: Option<String>,
    pub title: Option<String>,
    pub file_name: Option<String>,
    pub mime_type: Option<Mime>,
    pub file_size: Option<u32>,
    pub thumb: Option<PhotoSize>,
}

This object represents an audio file to be treated as music by the Telegram clients.

The official docs.

Fields

file_id: String

An identifier for this file.

file_unique_id: String

Unique identifier for this file, which is supposed to be the same over time and for different bots. Can’t be used to download or reuse the 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.

file_size: Option<u32>

A size of a file.

thumb: Option<PhotoSize>

A thumbnail of the album cover to which the music file belongs.

Trait Implementations

impl Clone for Audio[src]

impl Debug for Audio[src]

impl<'de> Deserialize<'de> for Audio[src]

impl Eq for Audio[src]

impl Hash for Audio[src]

impl PartialEq<Audio> for Audio[src]

impl Serialize for Audio[src]

impl StructuralEq for Audio[src]

impl StructuralPartialEq for Audio[src]

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<Q, K> Equivalent<K> for Q where
    Q: Eq + ?Sized,
    K: Borrow<Q> + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.