#[non_exhaustive]pub struct CreateApplicationEmoji {
pub name: CompactString,
pub image: ImageData,
}Expand description
The body of Create Application Emoji.
Application emojis belong to the bot itself and can be used by it in every guild and DM. The image may be at most 256 KiB.
discord.js counterpart: ApplicationEmojiCreateOptions.
Fields (Non-exhaustive)§
This struct is marked as 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: CompactStringThe name (2–32 characters: letters, digits and underscores).
image: ImageDataThe image.
Implementations§
Trait Implementations§
Source§impl Clone for CreateApplicationEmoji
impl Clone for CreateApplicationEmoji
Source§impl Debug for CreateApplicationEmoji
impl Debug for CreateApplicationEmoji
impl Eq for CreateApplicationEmoji
Source§impl Hash for CreateApplicationEmoji
impl Hash for CreateApplicationEmoji
Source§impl PartialEq for CreateApplicationEmoji
impl PartialEq for CreateApplicationEmoji
Source§impl Serialize for CreateApplicationEmoji
impl Serialize for CreateApplicationEmoji
impl StructuralPartialEq for CreateApplicationEmoji
Auto Trait Implementations§
impl !Freeze for CreateApplicationEmoji
impl RefUnwindSafe for CreateApplicationEmoji
impl Send for CreateApplicationEmoji
impl Sync for CreateApplicationEmoji
impl Unpin for CreateApplicationEmoji
impl UnsafeUnpin for CreateApplicationEmoji
impl UnwindSafe for CreateApplicationEmoji
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