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

Trait Implementations

impl Decodable for Document
[src]

Deserialize a value using a Decoder.

impl Debug for Document
[src]

Formats the value using the given formatter. Read more

impl PartialEq for Document
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Clone for Document
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Encodable for Document
[src]

Serialize a value using an Encoder.

Auto Trait Implementations

impl Send for Document

impl Sync for Document