Struct telegram_bot::types::Audio [−][src]
pub struct Audio {
pub file_id: String,
pub duration: Integer,
pub performer: Option<String>,
pub title: Option<String>,
pub mime_type: Option<String>,
pub file_size: Option<Integer>,
}Telegram type "Audio" (directly mapped)
Fields
file_id: String
duration: Integer
performer: Option<String>
title: Option<String>
mime_type: Option<String>
file_size: Option<Integer>
Trait Implementations
impl Decodable for Audio[src]
impl Decodable for Audiofn decode<__D: Decoder>(d: &mut __D) -> Result<Audio, __D::Error>[src]
fn decode<__D: Decoder>(d: &mut __D) -> Result<Audio, __D::Error>Deserialize a value using a Decoder.
impl Debug for Audio[src]
impl Debug for Audiofn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl PartialEq for Audio[src]
impl PartialEq for Audiofn eq(&self, other: &Audio) -> bool[src]
fn eq(&self, other: &Audio) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Audio) -> bool[src]
fn ne(&self, other: &Audio) -> boolThis method tests for !=.
impl Clone for Audio[src]
impl Clone for Audiofn clone(&self) -> Audio[src]
fn clone(&self) -> AudioReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl Encodable for Audio[src]
impl Encodable for Audio