Struct frankenstein::objects::StickerSet
source · [−]pub struct StickerSet {
pub name: String,
pub title: String,
pub is_animated: bool,
pub is_video: bool,
pub contains_masks: bool,
pub stickers: Vec<Sticker>,
pub thumb: Option<PhotoSize>,
}
Fields
name: String
title: String
is_animated: bool
is_video: bool
contains_masks: bool
stickers: Vec<Sticker>
thumb: Option<PhotoSize>
Implementations
sourceimpl StickerSet
impl StickerSet
sourcepub fn builder() -> StickerSetBuilder<((), (), (), (), (), (), ())>
pub fn builder() -> StickerSetBuilder<((), (), (), (), (), (), ())>
Create a builder for building StickerSet
.
On the builder, call .name(...)
, .title(...)
, .is_animated(...)
, .is_video(...)
, .contains_masks(...)
, .stickers(...)
, .thumb(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of StickerSet
.
Trait Implementations
sourceimpl Clone for StickerSet
impl Clone for StickerSet
sourcefn clone(&self) -> StickerSet
fn clone(&self) -> StickerSet
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for StickerSet
impl Debug for StickerSet
sourceimpl<'de> Deserialize<'de> for StickerSet
impl<'de> Deserialize<'de> for StickerSet
sourcefn 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
sourceimpl PartialEq<StickerSet> for StickerSet
impl PartialEq<StickerSet> for StickerSet
sourcefn eq(&self, other: &StickerSet) -> bool
fn eq(&self, other: &StickerSet) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &StickerSet) -> bool
fn ne(&self, other: &StickerSet) -> bool
This method tests for !=
.
sourceimpl Serialize for StickerSet
impl Serialize for StickerSet
impl StructuralPartialEq for StickerSet
Auto Trait Implementations
impl RefUnwindSafe for StickerSet
impl Send for StickerSet
impl Sync for StickerSet
impl Unpin for StickerSet
impl UnwindSafe for StickerSet
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more