pub struct InputInlineQueryResultDocument {
pub id: String,
pub title: String,
pub description: String,
pub document_url: String,
pub mime_type: String,
pub thumbnail_url: String,
pub thumbnail_width: i32,
pub thumbnail_height: i32,
pub reply_markup: Option<ReplyMarkup>,
pub input_message_content: InputMessageContent,
}Expand description
Represents a link to a file
Fields§
§id: StringUnique identifier of the query result
title: StringTitle of the resulting file
description: StringShort description of the result, if known
document_url: StringURL of the file
mime_type: StringMIME type of the file content; only “application/pdf” and “application/zip” are currently allowed
thumbnail_url: StringThe URL of the file thumbnail, if it exists
thumbnail_width: i32Width of the thumbnail
thumbnail_height: i32Height of the thumbnail
reply_markup: Option<ReplyMarkup>The message reply markup; pass null if none. Must be of type replyMarkupInlineKeyboard or null
input_message_content: InputMessageContentThe content of the message to be sent. Must be one of the following types: inputMessageText, inputMessageDocument, inputMessageInvoice, inputMessageLocation, inputMessageVenue or inputMessageContact
Trait Implementations§
Source§impl Clone for InputInlineQueryResultDocument
impl Clone for InputInlineQueryResultDocument
Source§fn clone(&self) -> InputInlineQueryResultDocument
fn clone(&self) -> InputInlineQueryResultDocument
Returns a copy 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<'de> Deserialize<'de> for InputInlineQueryResultDocument
impl<'de> Deserialize<'de> for InputInlineQueryResultDocument
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
Source§impl PartialEq for InputInlineQueryResultDocument
impl PartialEq for InputInlineQueryResultDocument
Source§fn eq(&self, other: &InputInlineQueryResultDocument) -> bool
fn eq(&self, other: &InputInlineQueryResultDocument) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for InputInlineQueryResultDocument
Auto Trait Implementations§
impl Freeze for InputInlineQueryResultDocument
impl RefUnwindSafe for InputInlineQueryResultDocument
impl Send for InputInlineQueryResultDocument
impl Sync for InputInlineQueryResultDocument
impl Unpin for InputInlineQueryResultDocument
impl UnwindSafe for InputInlineQueryResultDocument
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