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: CommandPermissionTypeAffected resource.
permission: boolWhether the resource is allowed or disallowed to use the command.
Trait Implementations
sourceimpl Clone for CommandPermission
impl Clone for CommandPermission
sourcefn clone(&self) -> CommandPermission
fn clone(&self) -> CommandPermission
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 CommandPermission
impl Debug for CommandPermission
sourceimpl<'de> Deserialize<'de> for CommandPermission
impl<'de> Deserialize<'de> for CommandPermission
sourcefn 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
sourceimpl Hash for CommandPermission
impl Hash for CommandPermission
sourceimpl PartialEq<CommandPermission> for CommandPermission
impl PartialEq<CommandPermission> for CommandPermission
sourcefn eq(&self, other: &CommandPermission) -> bool
fn eq(&self, other: &CommandPermission) -> bool
sourceimpl Serialize for CommandPermission
impl Serialize for CommandPermission
impl Eq for CommandPermission
impl StructuralEq for CommandPermission
impl StructuralPartialEq for CommandPermission
Auto Trait Implementations
impl RefUnwindSafe for CommandPermission
impl Send for CommandPermission
impl Sync for CommandPermission
impl Unpin for CommandPermission
impl UnwindSafe for CommandPermission
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