pub struct GuildCommandPermissions {
pub application_id: Id<ApplicationMarker>,
pub guild_id: Id<GuildMarker>,
pub id: Id<CommandMarker>,
pub permissions: Vec<CommandPermission>,
}
Expand description
List of CommandPermission
s for a command in a guild.
Fields§
§application_id: Id<ApplicationMarker>
ID of the application the command belongs to.
guild_id: Id<GuildMarker>
ID of the guild.
id: Id<CommandMarker>
ID of the command.
permissions: Vec<CommandPermission>
Command permissions in the guild.
Max 100.
Trait Implementations§
source§impl Clone for GuildCommandPermissions
impl Clone for GuildCommandPermissions
source§fn clone(&self) -> GuildCommandPermissions
fn clone(&self) -> GuildCommandPermissions
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§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
source§impl Hash for GuildCommandPermissions
impl Hash for GuildCommandPermissions
source§impl PartialEq<GuildCommandPermissions> for GuildCommandPermissions
impl PartialEq<GuildCommandPermissions> for GuildCommandPermissions
source§fn eq(&self, other: &GuildCommandPermissions) -> bool
fn eq(&self, other: &GuildCommandPermissions) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.