Struct tg_bot_models::InlineQueryResultDocument [−][src]
pub struct InlineQueryResultDocument { pub ty: String, pub id: String, pub title: String, pub caption: Option<String>, pub parse_mode: Option<String>, pub document_url: String, pub mime_type: String, pub description: Option<String>, pub reply_markup: Option<InlineKeyboardMarkup>, pub input_message_content: Option<InputMessageContent>, pub thumb_url: Option<String>, pub thumb_width: Option<i64>, pub thumb_height: Option<i64>, }
Represents a link to a file. By default, this file will be sent by the user with an optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the file. Currently, only .PDF and .ZIP files can be sent using this method.
Fields
ty: String
Type of the result, must be document
id: String
Unique identifier for this result, 1-64 bytes
title: String
Title for the result
Optional. Caption of the document to be sent, 0-200 characters
parse_mode: Option<String>
Optional. Send Markdown or HTML, if you want Telegram apps to show bold, italic, fixed-width text or inline URLs in the media caption.
document_url: String
A valid URL for the file
mime_type: String
Mime type of the content of the file, either “application/pdf” or “application/zip”
description: Option<String>
Optional. Short description of the result
reply_markup: Option<InlineKeyboardMarkup>
Optional. Inline keyboard attached to the message
input_message_content: Option<InputMessageContent>
Optional. Content of the message to be sent instead of the file
thumb_url: Option<String>
Optional. URL of the thumbnail (jpeg only) for the file
thumb_width: Option<i64>
Optional. Thumbnail width
thumb_height: Option<i64>
Optional. Thumbnail height
Trait Implementations
impl Debug for InlineQueryResultDocument
[src]
impl Debug for InlineQueryResultDocument
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 Clone for InlineQueryResultDocument
[src]
impl Clone for InlineQueryResultDocument
fn clone(&self) -> InlineQueryResultDocument
[src]
fn clone(&self) -> InlineQueryResultDocument
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)
Performs copy-assignment from source
. Read more
impl PartialEq for InlineQueryResultDocument
[src]
impl PartialEq for InlineQueryResultDocument
fn eq(&self, other: &InlineQueryResultDocument) -> bool
[src]
fn eq(&self, other: &InlineQueryResultDocument) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &InlineQueryResultDocument) -> bool
[src]
fn ne(&self, other: &InlineQueryResultDocument) -> bool
This method tests for !=
.
impl PartialOrd for InlineQueryResultDocument
[src]
impl PartialOrd for InlineQueryResultDocument
fn partial_cmp(&self, other: &InlineQueryResultDocument) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &InlineQueryResultDocument) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &InlineQueryResultDocument) -> bool
[src]
fn lt(&self, other: &InlineQueryResultDocument) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &InlineQueryResultDocument) -> bool
[src]
fn le(&self, other: &InlineQueryResultDocument) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &InlineQueryResultDocument) -> bool
[src]
fn gt(&self, other: &InlineQueryResultDocument) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &InlineQueryResultDocument) -> bool
[src]
fn ge(&self, other: &InlineQueryResultDocument) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
Auto Trait Implementations
impl Send for InlineQueryResultDocument
impl Send for InlineQueryResultDocument
impl Sync for InlineQueryResultDocument
impl Sync for InlineQueryResultDocument