pub struct Emote {
pub id: EmoteId,
pub code: String,
pub images: Vec<EmoteImage>,
pub modifier: Option<EmoteModifier>,
}Fields§
§id: EmoteId§code: String§images: Vec<EmoteImage>§modifier: Option<EmoteModifier>Implementations§
Source§impl Emote
impl Emote
pub fn new( id: EmoteId, code: impl Into<String>, images: Vec<EmoteImage>, ) -> Self
pub fn with_modifier(self, modifier: EmoteModifier) -> Self
pub fn is_animated(&self) -> bool
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Emote
impl<'de> Deserialize<'de> for Emote
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
impl Eq for Emote
impl StructuralPartialEq for Emote
Auto Trait Implementations§
impl Freeze for Emote
impl RefUnwindSafe for Emote
impl Send for Emote
impl Sync for Emote
impl Unpin for Emote
impl UnsafeUnpin for Emote
impl UnwindSafe for Emote
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