[−][src]Struct teloxide::types::StickerSet
This object represents a sticker set.
Fields (Non-exhaustive)
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.name: String
Sticker set name.
title: String
Sticker set title.
is_animated: bool
true
, if the sticker set contains [animated stickers].
contains_masks: bool
true
, if the sticker set contains masks.
stickers: Vec<Sticker>
List of all set stickers.
Implementations
impl StickerSet
[src]
pub fn new<S1, S2, St>(
name: S1,
title: S2,
is_animated: bool,
contains_masks: bool,
stickers: St
) -> Self where
S1: Into<String>,
S2: Into<String>,
St: Into<Vec<Sticker>>,
[src]
name: S1,
title: S2,
is_animated: bool,
contains_masks: bool,
stickers: St
) -> Self where
S1: Into<String>,
S2: Into<String>,
St: Into<Vec<Sticker>>,
pub fn name<S>(self, val: S) -> Self where
S: Into<String>,
[src]
S: Into<String>,
pub fn title<S>(self, val: S) -> Self where
S: Into<String>,
[src]
S: Into<String>,
pub fn is_animated(self, val: bool) -> Self
[src]
pub fn contains_masks(self, val: bool) -> Self
[src]
pub fn stickers<S>(self, val: S) -> Self where
S: Into<Vec<Sticker>>,
[src]
S: Into<Vec<Sticker>>,
Trait Implementations
impl Clone for StickerSet
[src]
fn clone(&self) -> StickerSet
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for StickerSet
[src]
impl<'de> Deserialize<'de> for StickerSet
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl PartialEq<StickerSet> for StickerSet
[src]
fn eq(&self, other: &StickerSet) -> bool
[src]
fn ne(&self, other: &StickerSet) -> bool
[src]
impl Serialize for StickerSet
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralPartialEq for StickerSet
[src]
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,