#[non_exhaustive]pub struct ModifyGuildRole {
pub name: Option<CompactString>,
pub permissions: Option<Permissions>,
pub colors: Patch<RoleColors>,
pub hoist: Option<bool>,
pub icon: Patch<ImageData>,
pub unicode_emoji: Patch<CompactString>,
pub mentionable: Option<bool>,
}Expand description
The body of Modify Guild Role.
Every field is optional; Patch fields can also be cleared.
discord.js counterpart: RoleEditOptions.
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 name (max 100 characters).
permissions: Option<Permissions>The permissions.
colors: Patch<RoleColors>The colors; Patch::Clear removes them.
hoist: Option<bool>Whether members with the role are shown separately in the member list.
icon: Patch<ImageData>The icon (needs the ROLE_ICONS feature).
unicode_emoji: Patch<CompactString>A Unicode emoji as the icon (needs the ROLE_ICONS feature).
mentionable: Option<bool>Whether everyone can mention the role.
Trait Implementations§
Source§impl Clone for ModifyGuildRole
impl Clone for ModifyGuildRole
Source§impl Debug for ModifyGuildRole
impl Debug for ModifyGuildRole
Source§impl Default for ModifyGuildRole
impl Default for ModifyGuildRole
impl Eq for ModifyGuildRole
Source§impl Hash for ModifyGuildRole
impl Hash for ModifyGuildRole
Source§impl PartialEq for ModifyGuildRole
impl PartialEq for ModifyGuildRole
Source§impl Serialize for ModifyGuildRole
impl Serialize for ModifyGuildRole
impl StructuralPartialEq for ModifyGuildRole
Auto Trait Implementations§
impl !Freeze for ModifyGuildRole
impl RefUnwindSafe for ModifyGuildRole
impl Send for ModifyGuildRole
impl Sync for ModifyGuildRole
impl Unpin for ModifyGuildRole
impl UnsafeUnpin for ModifyGuildRole
impl UnwindSafe for ModifyGuildRole
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