pub struct CustomEmoji {
pub id: usize,
pub created: usize,
pub owner: usize,
pub community: usize,
pub upload_id: usize,
pub name: String,
pub is_animated: bool,
}Fields§
§id: usize§created: usize§owner: usize§community: usize§upload_id: usize§name: String§is_animated: boolImplementations§
Source§impl CustomEmoji
impl CustomEmoji
Sourcepub fn new(
owner: usize,
community: usize,
upload_id: usize,
name: String,
is_animated: bool,
) -> Self
pub fn new( owner: usize, community: usize, upload_id: usize, name: String, is_animated: bool, ) -> Self
Create a new CustomEmoji.
Sourcepub fn parse(input: &str) -> EmojiParserResult
pub fn parse(input: &str) -> EmojiParserResult
Parse text for emojis.
Another “great” parser, just like the mentions parser.
§Returns
(capture, community id, emoji name)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CustomEmoji
impl<'de> Deserialize<'de> for CustomEmoji
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
Auto Trait Implementations§
impl Freeze for CustomEmoji
impl RefUnwindSafe for CustomEmoji
impl Send for CustomEmoji
impl Sync for CustomEmoji
impl Unpin for CustomEmoji
impl UnwindSafe for CustomEmoji
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