Struct carapax::types::ReplaceStickerInSet
source · pub struct ReplaceStickerInSet { /* private fields */ }
Expand description
Replaces an existing sticker in a sticker set with a new one.
The method is equivalent to calling crate::types::DeleteStickerFromSet
,
then crate::types::AddStickerToSet
,
then crate::types::SetStickerPositionInSet
.
Implementations§
source§impl ReplaceStickerInSet
impl ReplaceStickerInSet
sourcepub fn new<A, B>(
name: A,
old_sticker: B,
sticker: InputSticker,
user_id: i64
) -> Result<ReplaceStickerInSet, InputStickerError>
pub fn new<A, B>( name: A, old_sticker: B, sticker: InputSticker, user_id: i64 ) -> Result<ReplaceStickerInSet, InputStickerError>
Creates a new ReplaceStickerInSet
.
§Arguments
name
- Sticker set name.old_sticker
- File identifier of the replaced sticker.sticker
- Information about the added sticker. If exactly the same sticker had already been added to the set, then the set remains unchanged.user_id
- User identifier of the sticker set owner.
Trait Implementations§
source§impl Debug for ReplaceStickerInSet
impl Debug for ReplaceStickerInSet
source§impl Method for ReplaceStickerInSet
impl Method for ReplaceStickerInSet
Auto Trait Implementations§
impl Freeze for ReplaceStickerInSet
impl !RefUnwindSafe for ReplaceStickerInSet
impl Send for ReplaceStickerInSet
impl Sync for ReplaceStickerInSet
impl Unpin for ReplaceStickerInSet
impl !UnwindSafe for ReplaceStickerInSet
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