#[non_exhaustive]pub struct GuildCommandPermissions {
pub id: GenericId,
pub application_id: ApplicationId,
pub guild_id: GuildId,
pub permissions: Vec<CommandPermission>,
}Expand description
The permissions of an app’s command(s) in a guild.
discord.js counterpart: ApplicationCommandPermissions (per guild).
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.id: GenericIdThe command, or the application ID for permissions that apply to all its commands without their own.
application_id: ApplicationIdThe application the command belongs to.
guild_id: GuildIdThe guild.
permissions: Vec<CommandPermission>The permissions (max 100).
Trait Implementations§
Source§impl Clone for GuildCommandPermissions
impl Clone for GuildCommandPermissions
Source§impl Debug for GuildCommandPermissions
impl Debug for GuildCommandPermissions
Source§impl<'de> Deserialize<'de> for GuildCommandPermissions
impl<'de> Deserialize<'de> for GuildCommandPermissions
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 GuildCommandPermissions
Source§impl From<ApplicationCommandPermissionsUpdate> for GuildCommandPermissions
impl From<ApplicationCommandPermissionsUpdate> for GuildCommandPermissions
Source§fn from(event: ApplicationCommandPermissionsUpdate) -> Self
fn from(event: ApplicationCommandPermissionsUpdate) -> Self
Converts to this type from the input type.
Source§impl Hash for GuildCommandPermissions
impl Hash for GuildCommandPermissions
Source§impl PartialEq for GuildCommandPermissions
impl PartialEq for GuildCommandPermissions
Source§impl Serialize for GuildCommandPermissions
impl Serialize for GuildCommandPermissions
impl StructuralPartialEq for GuildCommandPermissions
Auto Trait Implementations§
impl Forget for GuildCommandPermissions
impl Freeze for GuildCommandPermissions
impl Move for GuildCommandPermissions
impl RefUnwindSafe for GuildCommandPermissions
impl Send for GuildCommandPermissions
impl Sync for GuildCommandPermissions
impl Unpin for GuildCommandPermissions
impl UnsafeUnpin for GuildCommandPermissions
impl UnwindSafe for GuildCommandPermissions
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