pub struct InputInlineQueryResultSticker {
pub id: String,
pub thumbnail_url: String,
pub sticker_url: String,
pub sticker_width: i32,
pub sticker_height: i32,
pub reply_markup: Option<ReplyMarkup>,
pub input_message_content: InputMessageContent,
}
Expand description
Represents a link to a WEBP, TGS, or WEBM sticker
Fields§
§id: String
Unique identifier of the query result
thumbnail_url: String
URL of the sticker thumbnail, if it exists
sticker_url: String
The URL of the WEBP, TGS, or WEBM sticker (sticker file size must not exceed 5MB)
sticker_width: i32
Width of the sticker
sticker_height: i32
Height of the sticker
reply_markup: Option<ReplyMarkup>
The message reply markup; pass null if none. Must be of type replyMarkupInlineKeyboard or null
input_message_content: InputMessageContent
The content of the message to be sent. Must be one of the following types: inputMessageText, inputMessageSticker, inputMessageInvoice, inputMessageLocation, inputMessageVenue or inputMessageContact
Trait Implementations§
Source§impl Clone for InputInlineQueryResultSticker
impl Clone for InputInlineQueryResultSticker
Source§fn clone(&self) -> InputInlineQueryResultSticker
fn clone(&self) -> InputInlineQueryResultSticker
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<'de> Deserialize<'de> for InputInlineQueryResultSticker
impl<'de> Deserialize<'de> for InputInlineQueryResultSticker
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 InputInlineQueryResultSticker
impl PartialEq for InputInlineQueryResultSticker
Source§fn eq(&self, other: &InputInlineQueryResultSticker) -> bool
fn eq(&self, other: &InputInlineQueryResultSticker) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for InputInlineQueryResultSticker
Auto Trait Implementations§
impl Freeze for InputInlineQueryResultSticker
impl RefUnwindSafe for InputInlineQueryResultSticker
impl Send for InputInlineQueryResultSticker
impl Sync for InputInlineQueryResultSticker
impl Unpin for InputInlineQueryResultSticker
impl UnwindSafe for InputInlineQueryResultSticker
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