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