pub struct GuildCommandPermissions {
pub application_id: Id<ApplicationMarker>,
pub guild_id: Id<GuildMarker>,
pub id: Id<CommandMarker>,
pub permissions: Vec<CommandPermission>,
}
Expand description
List of CommandPermission
s for a command in a guild.
Fields§
§application_id: Id<ApplicationMarker>
ID of the application the command belongs to.
guild_id: Id<GuildMarker>
ID of the guild.
id: Id<CommandMarker>
ID of the command.
permissions: Vec<CommandPermission>
Command permissions in the guild.
Max 100.
Trait Implementations§
source§impl Clone for GuildCommandPermissions
impl Clone for GuildCommandPermissions
source§fn clone(&self) -> GuildCommandPermissions
fn clone(&self) -> GuildCommandPermissions
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 GuildCommandPermissions
impl Debug for GuildCommandPermissions
source§impl<'de> Deserialize<'de> for GuildCommandPermissions
impl<'de> Deserialize<'de> for GuildCommandPermissions
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Hash for GuildCommandPermissions
impl Hash for GuildCommandPermissions
source§impl PartialEq for GuildCommandPermissions
impl PartialEq for GuildCommandPermissions
source§impl Serialize for GuildCommandPermissions
impl Serialize for GuildCommandPermissions
impl Eq for GuildCommandPermissions
impl StructuralPartialEq for GuildCommandPermissions
Auto Trait Implementations§
impl Freeze for GuildCommandPermissions
impl RefUnwindSafe for GuildCommandPermissions
impl Send for GuildCommandPermissions
impl Sync for GuildCommandPermissions
impl Unpin for GuildCommandPermissions
impl UnwindSafe for GuildCommandPermissions
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
)