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 Audio
fn 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 Audio
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for Audio
[src]
impl PartialEq for Audio
fn eq(&self, other: &Audio) -> bool
[src]
fn eq(&self, other: &Audio) -> bool
This 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) -> bool
This method tests for !=
.
impl Clone for Audio
[src]
impl Clone for Audio
fn clone(&self) -> Audio
[src]
fn clone(&self) -> Audio
Returns 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