pub struct StickerMessageContent {
pub type: Option<String>,
pub id: String,
pub package_id: String,
pub sticker_id: String,
pub sticker_resource_type: StickerResourceType,
pub keywords: Option<Vec<String>>,
pub text: Option<String>,
pub quote_token: String,
pub quoted_message_id: Option<String>,
}Fields§
§type: Option<String>Type
id: StringMessage ID
package_id: StringPackage ID
sticker_id: StringSticker ID
sticker_resource_type: StickerResourceType§keywords: Option<Vec<String>>Array of up to 15 keywords describing the sticker. If a sticker has 16 or more keywords, a random selection of 15 keywords will be returned. The keyword selection is random for each event, so different keywords may be returned for the same sticker.
text: Option<String>Any text entered by the user. This property is only included for message stickers. Max character limit: 100
quote_token: StringQuote token to quote this message.
quoted_message_id: Option<String>Message ID of a quoted message. Only included when the received message quotes a past message.
Implementations§
Source§impl StickerMessageContent
impl StickerMessageContent
pub fn new( type: String, id: String, package_id: String, sticker_id: String, sticker_resource_type: StickerResourceType, quote_token: String, ) -> StickerMessageContent
Trait Implementations§
Source§impl Clone for StickerMessageContent
impl Clone for StickerMessageContent
Source§fn clone(&self) -> StickerMessageContent
fn clone(&self) -> StickerMessageContent
Returns a duplicate 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 StickerMessageContent
impl Debug for StickerMessageContent
Source§impl Default for StickerMessageContent
impl Default for StickerMessageContent
Source§fn default() -> StickerMessageContent
fn default() -> StickerMessageContent
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for StickerMessageContent
impl<'de> Deserialize<'de> for StickerMessageContent
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 StickerMessageContent
impl PartialEq for StickerMessageContent
Source§impl Serialize for StickerMessageContent
impl Serialize for StickerMessageContent
impl StructuralPartialEq for StickerMessageContent
Auto Trait Implementations§
impl Freeze for StickerMessageContent
impl RefUnwindSafe for StickerMessageContent
impl Send for StickerMessageContent
impl Sync for StickerMessageContent
impl Unpin for StickerMessageContent
impl UnwindSafe for StickerMessageContent
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