Struct telegram_typings::Document [] [src]

pub struct Document {
    pub file_id: String,
    pub thumb: Option<Box<PhotoSize>>,
    pub file_name: Option<String>,
    pub mime_type: Option<String>,
    pub file_size: Option<i64>,
}

This object represents a general file (as opposed to photos, voice messages and audio files). See https://core.telegram.org/bots/api#photosize See https://core.telegram.org/bots/api#voice See https://core.telegram.org/bots/api#audio

Fields

Unique file identifier

Document thumbnail as defined by sender

Original filename as defined by sender

MIME type of the file as defined by sender

File size

Trait Implementations

impl Debug for Document
[src]

[src]

Formats the value using the given formatter.

impl Clone for Document
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more