Struct telexide::api::types::InlineQueryResultDocument [−][src]
pub struct InlineQueryResultDocument {}Show fields
pub id: String, pub document_url: String, pub title: String, pub mime_type: String, pub caption: Option<String>, pub description: Option<String>, pub voice_duration: Option<i64>, pub parse_mode: Option<ParseMode>, pub caption_entities: Option<Vec<MessageEntity>>, pub input_message_content: Option<InputMessageContent>, pub reply_markup: Option<InlineKeyboardMarkup>, 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
id: String
Unique identifier for this result, 1-64 bytes
document_url: String
A valid URL for the file
title: String
Title of the result
mime_type: String
Mime type of the content of the file, either “application/pdf” or “application/zip”
caption: Option<String>
Caption of the audio to be sent, 0-1024 characters after entities parsing
description: Option<String>
Short description of the result
voice_duration: Option<i64>
Recording duration in seconds
parse_mode: Option<ParseMode>
Send Markdown or HTML, if you want Telegram apps to show bold, italic, fixed-width text or inline URLs in your bot’s message.
caption_entities: Option<Vec<MessageEntity>>
List of special entities that appear in the caption, which can be specified instead of parse_mode
input_message_content: Option<InputMessageContent>
Content of the message to be sent instead of the document
reply_markup: Option<InlineKeyboardMarkup>
Inline keyboard attached to the message
thumb_url: Option<String>
URL of the thumbnail (jpeg only) for the file
thumb_width: Option<i64>
Thumbnail width
thumb_height: Option<i64>
Thumbnail height
Trait Implementations
impl Clone for InlineQueryResultDocument
[src]
impl Clone for InlineQueryResultDocument
[src]fn clone(&self) -> InlineQueryResultDocument
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'de> Deserialize<'de> for InlineQueryResultDocument
[src]
impl<'de> Deserialize<'de> for InlineQueryResultDocument
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl PartialEq<InlineQueryResultDocument> for InlineQueryResultDocument
[src]
impl PartialEq<InlineQueryResultDocument> for InlineQueryResultDocument
[src]fn eq(&self, other: &InlineQueryResultDocument) -> bool
[src]
fn ne(&self, other: &InlineQueryResultDocument) -> bool
[src]
impl Serialize for InlineQueryResultDocument
[src]
impl Serialize for InlineQueryResultDocument
[src]Auto Trait Implementations
impl RefUnwindSafe for InlineQueryResultDocument
impl RefUnwindSafe for InlineQueryResultDocument
impl Send for InlineQueryResultDocument
impl Send for InlineQueryResultDocument
impl Sync for InlineQueryResultDocument
impl Sync for InlineQueryResultDocument
impl Unpin for InlineQueryResultDocument
impl Unpin for InlineQueryResultDocument
impl UnwindSafe for InlineQueryResultDocument
impl UnwindSafe for InlineQueryResultDocument
Blanket Implementations
impl<T> CloneAny for T where
T: Any + Clone,
[src]
impl<T> CloneAny for T where
T: Any + Clone,
[src]pub fn clone_any(&self) -> Box<dyn CloneAny + 'static, Global>
[src]
pub fn clone_any_send(&self) -> Box<dyn CloneAny + 'static + Send, Global> where
T: Send,
[src]
T: Send,
pub fn clone_any_sync(&self) -> Box<dyn CloneAny + 'static + Sync, Global> where
T: Sync,
[src]
T: Sync,
pub fn clone_any_send_sync(
&self
) -> Box<dyn CloneAny + 'static + Sync + Send, Global> where
T: Send + Sync,
[src]
&self
) -> Box<dyn CloneAny + 'static + Sync + Send, Global> where
T: Send + Sync,
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> UnsafeAny for T where
T: Any,
impl<T> UnsafeAny for T where
T: Any,