Struct carapax::types::AddStickerToSet
source · pub struct AddStickerToSet { /* private fields */ }
Expand description
Adds a new sticker to a set created by the bot.
The format of the added sticker must match the format of the other stickers in the set. Emoji sticker sets can have up to 200 stickers. Animated and video sticker sets can have up to 50 stickers. Static sticker sets can have up to 120 stickers.
Implementations§
source§impl AddStickerToSet
impl AddStickerToSet
sourcepub fn new<T>(
user_id: i64,
name: T,
sticker: InputSticker
) -> Result<AddStickerToSet, InputStickerError>
pub fn new<T>( user_id: i64, name: T, sticker: InputSticker ) -> Result<AddStickerToSet, InputStickerError>
Creates a new AddStickerToSet
.
§Arguments
user_id
- User identifier of sticker set owner.name
- Sticker set name.sticker
- Sticker file.
Trait Implementations§
source§impl Debug for AddStickerToSet
impl Debug for AddStickerToSet
source§impl Method for AddStickerToSet
impl Method for AddStickerToSet
Auto Trait Implementations§
impl Freeze for AddStickerToSet
impl !RefUnwindSafe for AddStickerToSet
impl Send for AddStickerToSet
impl Sync for AddStickerToSet
impl Unpin for AddStickerToSet
impl !UnwindSafe for AddStickerToSet
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more