Struct carapax::types::InputSticker
source · pub struct InputSticker { /* private fields */ }
Expand description
Represents a metadata of a sticker to be added to a sticker set.
Implementations§
source§impl InputSticker
impl InputSticker
sourcepub fn new<A, B, C>(
sticker: A,
emoji_list: B,
format: StickerFormat
) -> InputSticker
pub fn new<A, B, C>( sticker: A, emoji_list: B, format: StickerFormat ) -> InputSticker
Creates a new InputSticker
.
§Arguments
sticker
- The added sticker.emoji_list
- List of 1-20 emoji associated with the sticker.format
- Format of the sticker.
sourcepub fn with_keywords<A, B>(self, value: A) -> InputSticker
pub fn with_keywords<A, B>(self, value: A) -> InputSticker
Sets a new list of keywords.
§Arguments
value
- List of 0-20 search keywords for the sticker with total length of up to 64 characters; for “regular” and “custom_emoji” stickers only.
sourcepub fn with_mask_position(self, value: MaskPosition) -> InputSticker
pub fn with_mask_position(self, value: MaskPosition) -> InputSticker
Sets a new mask position.
§Arguments
value
- Position where the mask should be placed on faces; for “mask” stickers only.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for InputSticker
impl !RefUnwindSafe for InputSticker
impl Send for InputSticker
impl Sync for InputSticker
impl Unpin for InputSticker
impl !UnwindSafe for InputSticker
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