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 Documentfn 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 Documentfn 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 Document[src]
impl PartialEq for Documentfn eq(&self, other: &Document) -> bool[src]
fn eq(&self, other: &Document) -> boolThis 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) -> boolThis method tests for !=.
impl Clone for Document[src]
impl Clone for Documentfn clone(&self) -> Document[src]
fn clone(&self) -> DocumentReturns 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