pub struct StickerBuilder { /* private fields */ }Expand description
Builder for the Sticker structure
Implementations§
Source§impl StickerBuilder
impl StickerBuilder
Sourcepub fn new(
file_id: String,
file_unique_id: String,
_type: StickerType,
width: i64,
height: i64,
is_animated: bool,
is_video: bool,
) -> Self
pub fn new( file_id: String, file_unique_id: String, _type: StickerType, width: i64, height: i64, is_animated: bool, is_video: bool, ) -> Self
Instantiate the builder with the fields file_id, file_unique_id, _type, width, height, is_animated, is_video, thumb, emoji, set_name, premium_animation, mask_position, custom_emoji_id, file_size
Set the field premium_animation to the given value
Sourcepub fn mask_position(self, val: MaskPosition) -> Self
pub fn mask_position(self, val: MaskPosition) -> Self
Set the field mask_position to the given value
Sourcepub fn custom_emoji_id(self, val: String) -> Self
pub fn custom_emoji_id(self, val: String) -> Self
Set the field custom_emoji_id to the given value
Trait Implementations§
Auto Trait Implementations§
impl Freeze for StickerBuilder
impl RefUnwindSafe for StickerBuilder
impl Send for StickerBuilder
impl Sync for StickerBuilder
impl Unpin for StickerBuilder
impl UnwindSafe for StickerBuilder
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