Struct twilight_model::application::command::permissions::CommandPermission
source · pub struct CommandPermission {
pub id: CommandPermissionType,
pub permission: bool,
}
Expand description
Member, channel or role explicit permission to use a command.
Fields§
§id: CommandPermissionType
Affected resource.
permission: bool
Whether the resource is allowed or disallowed to use the command.
Trait Implementations§
source§impl Clone for CommandPermission
impl Clone for CommandPermission
source§fn clone(&self) -> CommandPermission
fn clone(&self) -> CommandPermission
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 CommandPermission
impl Debug for CommandPermission
source§impl<'de> Deserialize<'de> for CommandPermission
impl<'de> Deserialize<'de> for CommandPermission
source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
source§impl Hash for CommandPermission
impl Hash for CommandPermission
source§impl PartialEq<CommandPermission> for CommandPermission
impl PartialEq<CommandPermission> for CommandPermission
source§fn eq(&self, other: &CommandPermission) -> bool
fn eq(&self, other: &CommandPermission) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.