Struct tg_bot_models::InlineQueryResultGif [−][src]
pub struct InlineQueryResultGif { pub ty: String, pub id: String, pub gif_url: String, pub gif_width: Option<i64>, pub gif_height: Option<i64>, pub gif_duration: Option<i64>, pub thumb_url: String, pub title: Option<String>, pub caption: Option<String>, pub parse_mode: Option<String>, pub reply_markup: Option<InlineKeyboardMarkup>, pub input_message_content: Option<InputMessageContent>, }
Represents a link to an animated GIF file. By default, this animated GIF file will be sent by the user with optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the animation.
Fields
ty: String
Type of the result, must be gif
id: String
Unique identifier for this result, 1-64 bytes
gif_url: String
A valid URL for the GIF file. File size must not exceed 1MB
gif_width: Option<i64>
Optional. Width of the GIF
gif_height: Option<i64>
Optional. Height of the GIF
gif_duration: Option<i64>
Optional. Duration of the GIF
thumb_url: String
URL of the static thumbnail for the result (jpeg or gif)
title: Option<String>
Optional. Title for the result
Optional. Caption of the GIF file 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.
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 GIF animation
Trait Implementations
impl Debug for InlineQueryResultGif
[src]
impl Debug for InlineQueryResultGif
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 InlineQueryResultGif
[src]
impl Clone for InlineQueryResultGif
fn clone(&self) -> InlineQueryResultGif
[src]
fn clone(&self) -> InlineQueryResultGif
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 InlineQueryResultGif
[src]
impl PartialEq for InlineQueryResultGif
fn eq(&self, other: &InlineQueryResultGif) -> bool
[src]
fn eq(&self, other: &InlineQueryResultGif) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &InlineQueryResultGif) -> bool
[src]
fn ne(&self, other: &InlineQueryResultGif) -> bool
This method tests for !=
.
impl PartialOrd for InlineQueryResultGif
[src]
impl PartialOrd for InlineQueryResultGif
fn partial_cmp(&self, other: &InlineQueryResultGif) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &InlineQueryResultGif) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &InlineQueryResultGif) -> bool
[src]
fn lt(&self, other: &InlineQueryResultGif) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &InlineQueryResultGif) -> bool
[src]
fn le(&self, other: &InlineQueryResultGif) -> 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: &InlineQueryResultGif) -> bool
[src]
fn gt(&self, other: &InlineQueryResultGif) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &InlineQueryResultGif) -> bool
[src]
fn ge(&self, other: &InlineQueryResultGif) -> 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 InlineQueryResultGif
impl Send for InlineQueryResultGif
impl Sync for InlineQueryResultGif
impl Sync for InlineQueryResultGif