pub struct InlineQueryResultDocument {
pub id: String,
pub title: String,
pub caption: Option<String>,
pub parse_mode: Option<ParseMode>,
pub document_url: String,
pub mime_type: String,
pub description: Option<String>,
pub reply_markup: Option<InlineKeyboardMarkup>,
pub input_message_content: Option<InputMessageContent>,
pub thumbnail_url: Option<String>,
pub thumbnail_width: Option<u32>,
pub thumbnail_height: Option<u32>,
}Expand description
A general file result in an inline query.
Fields§
§id: StringUnique identifier for this result (1–64 bytes).
title: StringTitle for the result.
caption: Option<String>Caption of the media (0–1024 characters).
parse_mode: Option<ParseMode>Parse mode for the caption. See formatting options for more details.
document_url: StringA valid URL for the file.
mime_type: StringMIME type of the document (application/pdf or application/zip).
description: Option<String>Short description of the result.
reply_markup: Option<InlineKeyboardMarkup>Inline keyboard attached to the message.
input_message_content: Option<InputMessageContent>Content of the message to be sent instead of the media.
thumbnail_url: Option<String>URL of the thumbnail for the result.
thumbnail_width: Option<u32>Thumbnail width in pixels.
thumbnail_height: Option<u32>Thumbnail height in pixels.
Trait Implementations§
Source§impl Clone for InlineQueryResultDocument
impl Clone for InlineQueryResultDocument
Source§fn clone(&self) -> InlineQueryResultDocument
fn clone(&self) -> InlineQueryResultDocument
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for InlineQueryResultDocument
impl Debug for InlineQueryResultDocument
Source§impl<'de> Deserialize<'de> for InlineQueryResultDocument
impl<'de> Deserialize<'de> for InlineQueryResultDocument
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for InlineQueryResultDocument
impl RefUnwindSafe for InlineQueryResultDocument
impl Send for InlineQueryResultDocument
impl Sync for InlineQueryResultDocument
impl Unpin for InlineQueryResultDocument
impl UnsafeUnpin for InlineQueryResultDocument
impl UnwindSafe for InlineQueryResultDocument
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more