Struct tg_bot_models::Audio [] [src]

pub struct Audio {
    pub file_id: String,
    pub duration: i64,
    pub performer: Option<String>,
    pub title: Option<String>,
    pub mime_type: Option<String>,
    pub file_size: Option<i64>,
}

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

Fields

Unique identifier for this file

Duration of the audio in seconds as defined by sender

Optional. Performer of the audio as defined by sender or by audio tags

Optional. Title of the audio as defined by sender or by audio tags

Optional. MIME type of the file as defined by sender

Optional. File size

Trait Implementations

impl Debug for Audio
[src]

[src]

Formats the value using the given formatter.

impl Clone for Audio
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq for Audio
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl PartialOrd for Audio
[src]

[src]

This method returns an ordering between self and other values if one exists. Read more

[src]

This method tests less than (for self and other) and is used by the < operator. Read more

[src]

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

[src]

This method tests greater than (for self and other) and is used by the > operator. Read more

[src]

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more