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 for CommandPermission
impl PartialEq for CommandPermission
source§impl Serialize for CommandPermission
impl Serialize for CommandPermission
impl Eq for CommandPermission
impl StructuralPartialEq for CommandPermission
Auto Trait Implementations§
impl Freeze for CommandPermission
impl RefUnwindSafe for CommandPermission
impl Send for CommandPermission
impl Sync for CommandPermission
impl Unpin for CommandPermission
impl UnwindSafe for CommandPermission
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
)