pub enum CommandPermissionType {
Channel(Id<ChannelMarker>),
Role(Id<RoleMarker>),
User(Id<UserMarker>),
}Expand description
Resources commands can allow or disallow from executing them.
Variants
Channel(Id<ChannelMarker>)
Affected channel.
Use @everyone - 1 for all channels in the guild.
Role(Id<RoleMarker>)
Affected role.
The @everyone role is permitted.
User(Id<UserMarker>)
Affected member.
Trait Implementations
sourceimpl Clone for CommandPermissionType
impl Clone for CommandPermissionType
sourcefn clone(&self) -> CommandPermissionType
fn clone(&self) -> CommandPermissionType
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for CommandPermissionType
impl Debug for CommandPermissionType
sourceimpl Hash for CommandPermissionType
impl Hash for CommandPermissionType
sourceimpl PartialEq<CommandPermissionType> for CommandPermissionType
impl PartialEq<CommandPermissionType> for CommandPermissionType
sourcefn eq(&self, other: &CommandPermissionType) -> bool
fn eq(&self, other: &CommandPermissionType) -> bool
impl Copy for CommandPermissionType
impl Eq for CommandPermissionType
impl StructuralEq for CommandPermissionType
impl StructuralPartialEq for CommandPermissionType
Auto Trait Implementations
impl RefUnwindSafe for CommandPermissionType
impl Send for CommandPermissionType
impl Sync for CommandPermissionType
impl Unpin for CommandPermissionType
impl UnwindSafe for CommandPermissionType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more