Struct telegram_bot::types::Voice [−][src]
pub struct Voice {
pub file_id: String,
pub duration: Integer,
pub mime_type: Option<String>,
pub file_size: Option<Integer>,
}Telegram type "Voice" (directly mapped)
Fields
file_id: String
duration: Integer
mime_type: Option<String>
file_size: Option<Integer>
Trait Implementations
impl Decodable for Voice[src]
impl Decodable for Voicefn decode<__D: Decoder>(d: &mut __D) -> Result<Voice, __D::Error>[src]
fn decode<__D: Decoder>(d: &mut __D) -> Result<Voice, __D::Error>Deserialize a value using a Decoder.
impl Debug for Voice[src]
impl Debug for Voicefn 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 Voice[src]
impl PartialEq for Voicefn eq(&self, other: &Voice) -> bool[src]
fn eq(&self, other: &Voice) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Voice) -> bool[src]
fn ne(&self, other: &Voice) -> boolThis method tests for !=.
impl Clone for Voice[src]
impl Clone for Voicefn clone(&self) -> Voice[src]
fn clone(&self) -> VoiceReturns 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 Voice[src]
impl Encodable for Voice