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
file_id: String
Unique identifier for this file
duration: i64
Duration of the audio in seconds as defined by sender
performer: Option<String>
Optional. Performer of the audio as defined by sender or by audio tags
title: Option<String>
Optional. Title of the audio as defined by sender or by audio tags
mime_type: Option<String>
Optional. MIME type of the file as defined by sender
file_size: Option<i64>
Optional. File size
Trait Implementations
impl Debug for Audio
[src]
impl Clone for Audio
[src]
fn clone(&self) -> Audio
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq for Audio
[src]
fn eq(&self, __arg_0: &Audio) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Audio) -> bool
[src]
This method tests for !=
.
impl PartialOrd for Audio
[src]
fn partial_cmp(&self, __arg_0: &Audio) -> Option<Ordering>
[src]
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, __arg_0: &Audio) -> bool
[src]
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, __arg_0: &Audio) -> bool
[src]
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, __arg_0: &Audio) -> bool
[src]
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, __arg_0: &Audio) -> bool
[src]
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more