pub struct SetStickerEmojiListRequest<'a> { /* private fields */ }Expand description
Use this method to change the list of emoji assigned to a regular or custom emoji sticker. The sticker must belong to a sticker set created by the bot. Returns True on success.
Implementations§
Source§impl<'a> SetStickerEmojiListRequest<'a>
impl<'a> SetStickerEmojiListRequest<'a>
pub fn new( api: &'a API, sticker: impl Into<String>, emoji_list: impl IntoIterator<Item = impl Into<String>>, ) -> Self
Sourcepub fn emoji_list(
self,
emoji_list: impl IntoIterator<Item = impl Into<String>>,
) -> Self
pub fn emoji_list( self, emoji_list: impl IntoIterator<Item = impl Into<String>>, ) -> Self
A JSON-serialized list of 1-20 emoji associated with the sticker
Trait Implementations§
Source§impl<'a> Clone for SetStickerEmojiListRequest<'a>
impl<'a> Clone for SetStickerEmojiListRequest<'a>
Source§fn clone(&self) -> SetStickerEmojiListRequest<'a>
fn clone(&self) -> SetStickerEmojiListRequest<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a, 'b> IntoFuture for &'b SetStickerEmojiListRequest<'a>
impl<'a, 'b> IntoFuture for &'b SetStickerEmojiListRequest<'a>
Source§type IntoFuture = Pin<Box<dyn Future<Output = Result<<SetStickerEmojiListRequest<'a> as RequestT>::ReturnType, ConogramError>> + Send + 'b>>
type IntoFuture = Pin<Box<dyn Future<Output = Result<<SetStickerEmojiListRequest<'a> as RequestT>::ReturnType, ConogramError>> + Send + 'b>>
Which kind of future are we turning this into?
Source§type Output = <<&'b SetStickerEmojiListRequest<'a> as IntoFuture>::IntoFuture as Future>::Output
type Output = <<&'b SetStickerEmojiListRequest<'a> as IntoFuture>::IntoFuture as Future>::Output
The output that the future will produce on completion.
Source§fn into_future(self) -> Self::IntoFuture
fn into_future(self) -> Self::IntoFuture
Creates a future from a value. Read more
Source§impl<'a> IntoFuture for SetStickerEmojiListRequest<'a>
impl<'a> IntoFuture for SetStickerEmojiListRequest<'a>
Source§type IntoFuture = Pin<Box<dyn Future<Output = Result<<SetStickerEmojiListRequest<'a> as RequestT>::ReturnType, ConogramError>> + Send + 'a>>
type IntoFuture = Pin<Box<dyn Future<Output = Result<<SetStickerEmojiListRequest<'a> as RequestT>::ReturnType, ConogramError>> + Send + 'a>>
Which kind of future are we turning this into?
Source§type Output = <<SetStickerEmojiListRequest<'a> as IntoFuture>::IntoFuture as Future>::Output
type Output = <<SetStickerEmojiListRequest<'a> as IntoFuture>::IntoFuture as Future>::Output
The output that the future will produce on completion.
Source§fn into_future(self) -> Self::IntoFuture
fn into_future(self) -> Self::IntoFuture
Creates a future from a value. Read more
Auto Trait Implementations§
impl<'a> Freeze for SetStickerEmojiListRequest<'a>
impl<'a> !RefUnwindSafe for SetStickerEmojiListRequest<'a>
impl<'a> Send for SetStickerEmojiListRequest<'a>
impl<'a> Sync for SetStickerEmojiListRequest<'a>
impl<'a> Unpin for SetStickerEmojiListRequest<'a>
impl<'a> UnsafeUnpin for SetStickerEmojiListRequest<'a>
impl<'a> !UnwindSafe for SetStickerEmojiListRequest<'a>
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