pub struct InlineQueryResultGif {
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<ParseMode>,
pub reply_markup: Option<InlineKeyboardMarkup>,
pub input_message_content: Option<InputMessageContent>,
}Fields§
§id: StringUnique identifier for this result, 1-64 Bytes
gif_url: StringA valid URL for the GIF file. File size must not exceed 1MB
gif_width: Option<i64>Width of the GIF
gif_height: Option<i64>Heightof the GIF
gif_duration: Option<i64>Duration of the GIF
thumb_url: StringUrl of the thumbnail for the result (jpeg or gif)
title: Option<String>Title of the result
caption: Option<String>Caption of the GIF file to be sent, 0-1024 characters
parse_mode: Option<ParseMode>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>Inline keyboard attached to the message
input_message_content: Option<InputMessageContent>Content of the message to be sent
Trait Implementations§
Source§impl Debug for InlineQueryResultGif
impl Debug for InlineQueryResultGif
Source§impl From<InlineQueryResultGif> for InlineQueryResult
impl From<InlineQueryResultGif> for InlineQueryResult
Source§fn from(gif: InlineQueryResultGif) -> InlineQueryResult
fn from(gif: InlineQueryResultGif) -> InlineQueryResult
Converts to this type from the input type.
Source§impl Serialize for InlineQueryResultGif
impl Serialize for InlineQueryResultGif
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for InlineQueryResultGif
impl RefUnwindSafe for InlineQueryResultGif
impl Send for InlineQueryResultGif
impl Sync for InlineQueryResultGif
impl Unpin for InlineQueryResultGif
impl UnwindSafe for InlineQueryResultGif
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