#[non_exhaustive]pub struct ModifyGuildSticker {
pub name: Option<CompactString>,
pub description: Patch<CompactString>,
pub tags: Option<CompactString>,
}Expand description
The body of Modify Guild Sticker.
Every field is optional; the image cannot be changed.
discord.js counterpart: GuildStickerEditOptions.
§Examples
use djs_model::{rest::ModifyGuildSticker, util::Patch};
let mut body = ModifyGuildSticker::default();
body.tags = Some("smile".into());
body.description = Patch::Clear;
assert_eq!(serde_json::to_string(&body)?, r#"{"description":null,"tags":"smile"}"#);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: Option<CompactString>The new name (2–30 characters).
description: Patch<CompactString>The new description (2–100 characters); Patch::Clear removes it.
The new autocomplete and suggestion tags (max 200 characters).
Trait Implementations§
Source§impl Clone for ModifyGuildSticker
impl Clone for ModifyGuildSticker
Source§impl Debug for ModifyGuildSticker
impl Debug for ModifyGuildSticker
Source§impl Default for ModifyGuildSticker
impl Default for ModifyGuildSticker
impl Eq for ModifyGuildSticker
Source§impl Hash for ModifyGuildSticker
impl Hash for ModifyGuildSticker
Source§impl PartialEq for ModifyGuildSticker
impl PartialEq for ModifyGuildSticker
Source§impl Serialize for ModifyGuildSticker
impl Serialize for ModifyGuildSticker
impl StructuralPartialEq for ModifyGuildSticker
Auto Trait Implementations§
impl Freeze for ModifyGuildSticker
impl RefUnwindSafe for ModifyGuildSticker
impl Send for ModifyGuildSticker
impl Sync for ModifyGuildSticker
impl Unpin for ModifyGuildSticker
impl UnsafeUnpin for ModifyGuildSticker
impl UnwindSafe for ModifyGuildSticker
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