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§
source§impl Clone for CommandPermissionType
impl Clone for CommandPermissionType
source§fn clone(&self) -> CommandPermissionType
fn clone(&self) -> CommandPermissionType
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 CommandPermissionType
impl Debug for CommandPermissionType
source§impl Hash for CommandPermissionType
impl Hash for CommandPermissionType
source§impl PartialEq for CommandPermissionType
impl PartialEq for CommandPermissionType
impl Copy for CommandPermissionType
impl Eq for CommandPermissionType
impl StructuralPartialEq for CommandPermissionType
Auto Trait Implementations§
impl Freeze for CommandPermissionType
impl RefUnwindSafe for CommandPermissionType
impl Send for CommandPermissionType
impl Sync for CommandPermissionType
impl Unpin for CommandPermissionType
impl UnwindSafe for CommandPermissionType
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)