Struct frankenstein::objects::InputSticker
source · pub struct InputSticker {
pub sticker: FileUpload,
pub format: StickerFormat,
pub emoji_list: Vec<String>,
pub mask_position: Option<MaskPosition>,
pub keywords: Option<Vec<String>>,
}
Fields§
§sticker: FileUpload
§format: StickerFormat
§emoji_list: Vec<String>
§mask_position: Option<MaskPosition>
§keywords: Option<Vec<String>>
Implementations§
source§impl InputSticker
impl InputSticker
sourcepub fn builder() -> InputStickerBuilder<((), (), (), (), ())>
pub fn builder() -> InputStickerBuilder<((), (), (), (), ())>
Create a builder for building InputSticker
.
On the builder, call .sticker(...)
, .format(...)
, .emoji_list(...)
, .mask_position(...)
(optional), .keywords(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of InputSticker
.
Trait Implementations§
source§impl Clone for InputSticker
impl Clone for InputSticker
source§fn clone(&self) -> InputSticker
fn clone(&self) -> InputSticker
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for InputSticker
impl Debug for InputSticker
source§impl<'de> Deserialize<'de> for InputSticker
impl<'de> Deserialize<'de> for InputSticker
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for InputSticker
impl PartialEq for InputSticker
source§fn eq(&self, other: &InputSticker) -> bool
fn eq(&self, other: &InputSticker) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for InputSticker
impl Serialize for InputSticker
impl StructuralPartialEq for InputSticker
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