pub struct CreateNewStickerSetParams {
pub user_id: u64,
pub name: String,
pub title: String,
pub stickers: Vec<InputSticker>,
pub sticker_type: Option<StickerType>,
pub needs_repainting: Option<bool>,
}
Fields§
§user_id: u64
§name: String
§title: String
§stickers: Vec<InputSticker>
§sticker_type: Option<StickerType>
§needs_repainting: Option<bool>
Implementations§
source§impl CreateNewStickerSetParams
impl CreateNewStickerSetParams
sourcepub fn builder() -> CreateNewStickerSetParamsBuilder<((), (), (), (), (), ())>
pub fn builder() -> CreateNewStickerSetParamsBuilder<((), (), (), (), (), ())>
Create a builder for building CreateNewStickerSetParams
.
On the builder, call .user_id(...)
, .name(...)
, .title(...)
, .stickers(...)
, .sticker_type(...)
, .needs_repainting(...)
to set the values of the fields.
Finally, call .build()
to create the instance of CreateNewStickerSetParams
.
Trait Implementations§
source§impl Clone for CreateNewStickerSetParams
impl Clone for CreateNewStickerSetParams
source§fn clone(&self) -> CreateNewStickerSetParams
fn clone(&self) -> CreateNewStickerSetParams
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 CreateNewStickerSetParams
impl Debug for CreateNewStickerSetParams
source§impl<'de> Deserialize<'de> for CreateNewStickerSetParams
impl<'de> Deserialize<'de> for CreateNewStickerSetParams
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 CreateNewStickerSetParams
impl PartialEq for CreateNewStickerSetParams
source§fn eq(&self, other: &CreateNewStickerSetParams) -> bool
fn eq(&self, other: &CreateNewStickerSetParams) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CreateNewStickerSetParams
Auto Trait Implementations§
impl Freeze for CreateNewStickerSetParams
impl RefUnwindSafe for CreateNewStickerSetParams
impl Send for CreateNewStickerSetParams
impl Sync for CreateNewStickerSetParams
impl Unpin for CreateNewStickerSetParams
impl UnwindSafe for CreateNewStickerSetParams
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