#[non_exhaustive]pub struct GetChannelPermissions {
pub implicit: Option<bool>,
}Expand description
The query of Get Channel Member Permissions and Get Channel Role Permissions.
discord.js counterpart: RESTGetAPIChannelMemberPermissionsQuery (discord-api-types).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.implicit: Option<bool>Whether to apply implicit permissions
(no permissions without VIEW_CHANNEL, or CONNECT in voice and stage channels;
Discord’s default: yes). Never applied to bots.
Trait Implementations§
Source§impl Clone for GetChannelPermissions
impl Clone for GetChannelPermissions
impl Copy for GetChannelPermissions
Source§impl Debug for GetChannelPermissions
impl Debug for GetChannelPermissions
Source§impl Default for GetChannelPermissions
impl Default for GetChannelPermissions
impl Eq for GetChannelPermissions
Source§impl Hash for GetChannelPermissions
impl Hash for GetChannelPermissions
Source§impl PartialEq for GetChannelPermissions
impl PartialEq for GetChannelPermissions
impl StructuralPartialEq for GetChannelPermissions
Auto Trait Implementations§
impl Freeze for GetChannelPermissions
impl RefUnwindSafe for GetChannelPermissions
impl Send for GetChannelPermissions
impl Sync for GetChannelPermissions
impl Unpin for GetChannelPermissions
impl UnsafeUnpin for GetChannelPermissions
impl UnwindSafe for GetChannelPermissions
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