Struct botapi::gen_types::InlineQueryResultCachedSticker
source · pub struct InlineQueryResultCachedSticker {
pub tg_type: String,
pub id: String,
pub sticker_file_id: String,
pub reply_markup: Option<BoxWrapper<Unbox<InlineKeyboardMarkup>>>,
pub input_message_content: Option<BoxWrapper<Unbox<InputMessageContent>>>,
}
Expand description
Represents a link to a sticker stored on the Telegram servers. By default, this sticker will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the sticker.
Fields§
§tg_type: String
Type of the result, must be sticker
id: String
Unique identifier for this result, 1-64 bytes
sticker_file_id: String
A valid file identifier of the sticker
reply_markup: Option<BoxWrapper<Unbox<InlineKeyboardMarkup>>>
Optional. Inline keyboard attached to the message
input_message_content: Option<BoxWrapper<Unbox<InputMessageContent>>>
Optional. Content of the message to be sent instead of the sticker
Implementations§
source§impl InlineQueryResultCachedSticker
impl InlineQueryResultCachedSticker
pub fn noskip(self) -> NoSkipInlineQueryResultCachedSticker
source§impl InlineQueryResultCachedSticker
impl InlineQueryResultCachedSticker
pub fn new(id: String, sticker_file_id: String) -> Self
sourcepub fn get_tg_type<'a>(&'a self) -> &'a str
pub fn get_tg_type<'a>(&'a self) -> &'a str
Type of the result, must be sticker
sourcepub fn set_tg_type<'a>(&'a mut self, tg_type: String) -> &'a mut Self
pub fn set_tg_type<'a>(&'a mut self, tg_type: String) -> &'a mut Self
Type of the result, must be sticker
sourcepub fn set_id<'a>(&'a mut self, id: String) -> &'a mut Self
pub fn set_id<'a>(&'a mut self, id: String) -> &'a mut Self
Unique identifier for this result, 1-64 bytes
sourcepub fn get_sticker_file_id<'a>(&'a self) -> &'a str
pub fn get_sticker_file_id<'a>(&'a self) -> &'a str
A valid file identifier of the sticker
sourcepub fn set_sticker_file_id<'a>(
&'a mut self,
sticker_file_id: String,
) -> &'a mut Self
pub fn set_sticker_file_id<'a>( &'a mut self, sticker_file_id: String, ) -> &'a mut Self
A valid file identifier of the sticker
sourcepub fn get_reply_markup<'a>(&'a self) -> Option<&'a InlineKeyboardMarkup>
pub fn get_reply_markup<'a>(&'a self) -> Option<&'a InlineKeyboardMarkup>
Optional. Inline keyboard attached to the message
sourcepub fn set_reply_markup<'a>(
&'a mut self,
reply_markup: Option<InlineKeyboardMarkup>,
) -> &'a mut Self
pub fn set_reply_markup<'a>( &'a mut self, reply_markup: Option<InlineKeyboardMarkup>, ) -> &'a mut Self
Optional. Inline keyboard attached to the message
sourcepub fn get_input_message_content<'a>(
&'a self,
) -> Option<&'a InputMessageContent>
pub fn get_input_message_content<'a>( &'a self, ) -> Option<&'a InputMessageContent>
Optional. Content of the message to be sent instead of the sticker
sourcepub fn set_input_message_content<'a>(
&'a mut self,
input_message_content: Option<InputMessageContent>,
) -> &'a mut Self
pub fn set_input_message_content<'a>( &'a mut self, input_message_content: Option<InputMessageContent>, ) -> &'a mut Self
Optional. Content of the message to be sent instead of the sticker
Trait Implementations§
source§impl Clone for InlineQueryResultCachedSticker
impl Clone for InlineQueryResultCachedSticker
source§fn clone(&self) -> InlineQueryResultCachedSticker
fn clone(&self) -> InlineQueryResultCachedSticker
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for InlineQueryResultCachedSticker
impl Default for InlineQueryResultCachedSticker
source§fn default() -> InlineQueryResultCachedSticker
fn default() -> InlineQueryResultCachedSticker
source§impl<'de> Deserialize<'de> for InlineQueryResultCachedSticker
impl<'de> Deserialize<'de> for InlineQueryResultCachedSticker
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>,
source§impl From<BoxWrapper<Box<InlineQueryResultCachedSticker>>> for InlineQueryResultCachedSticker
impl From<BoxWrapper<Box<InlineQueryResultCachedSticker>>> for InlineQueryResultCachedSticker
source§fn from(t: BoxWrapper<Box<InlineQueryResultCachedSticker>>) -> Self
fn from(t: BoxWrapper<Box<InlineQueryResultCachedSticker>>) -> Self
source§impl From<BoxWrapper<Unbox<InlineQueryResultCachedSticker>>> for InlineQueryResultCachedSticker
impl From<BoxWrapper<Unbox<InlineQueryResultCachedSticker>>> for InlineQueryResultCachedSticker
source§fn from(t: BoxWrapper<Unbox<InlineQueryResultCachedSticker>>) -> Self
fn from(t: BoxWrapper<Unbox<InlineQueryResultCachedSticker>>) -> Self
source§impl From<NoSkipInlineQueryResultCachedSticker> for InlineQueryResultCachedSticker
impl From<NoSkipInlineQueryResultCachedSticker> for InlineQueryResultCachedSticker
source§fn from(t: NoSkipInlineQueryResultCachedSticker) -> Self
fn from(t: NoSkipInlineQueryResultCachedSticker) -> Self
source§impl Into<NoSkipInlineQueryResultCachedSticker> for InlineQueryResultCachedSticker
impl Into<NoSkipInlineQueryResultCachedSticker> for InlineQueryResultCachedSticker
source§fn into(self) -> NoSkipInlineQueryResultCachedSticker
fn into(self) -> NoSkipInlineQueryResultCachedSticker
source§impl Ord for InlineQueryResultCachedSticker
impl Ord for InlineQueryResultCachedSticker
source§fn cmp(&self, other: &InlineQueryResultCachedSticker) -> Ordering
fn cmp(&self, other: &InlineQueryResultCachedSticker) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for InlineQueryResultCachedSticker
impl PartialEq for InlineQueryResultCachedSticker
source§fn eq(&self, other: &InlineQueryResultCachedSticker) -> bool
fn eq(&self, other: &InlineQueryResultCachedSticker) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for InlineQueryResultCachedSticker
impl PartialOrd for InlineQueryResultCachedSticker
source§fn partial_cmp(
&self,
other: &InlineQueryResultCachedSticker,
) -> Option<Ordering>
fn partial_cmp( &self, other: &InlineQueryResultCachedSticker, ) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moreimpl Eq for InlineQueryResultCachedSticker
impl StructuralPartialEq for InlineQueryResultCachedSticker
Auto Trait Implementations§
impl Freeze for InlineQueryResultCachedSticker
impl RefUnwindSafe for InlineQueryResultCachedSticker
impl Send for InlineQueryResultCachedSticker
impl Sync for InlineQueryResultCachedSticker
impl Unpin for InlineQueryResultCachedSticker
impl UnwindSafe for InlineQueryResultCachedSticker
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.