pub struct PermissionOverwrites {
pub id: Snowflake,
pub kind: String,
pub allow: i32,
pub deny: i32,
}Expand description
A channel permission overwrite.
Fields§
§id: SnowflakeThe ID of the role or user.
kind: StringWhat this ID is for.
allow: i32The allowed permission bitfield.
deny: i32The denied permissions bitfield.
Trait Implementations§
Source§impl Clone for PermissionOverwrites
impl Clone for PermissionOverwrites
Source§fn clone(&self) -> PermissionOverwrites
fn clone(&self) -> PermissionOverwrites
Returns a duplicate 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 PermissionOverwrites
impl Debug for PermissionOverwrites
Source§impl Default for PermissionOverwrites
impl Default for PermissionOverwrites
Source§fn default() -> PermissionOverwrites
fn default() -> PermissionOverwrites
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PermissionOverwrites
impl<'de> Deserialize<'de> for PermissionOverwrites
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
Auto Trait Implementations§
impl Freeze for PermissionOverwrites
impl RefUnwindSafe for PermissionOverwrites
impl Send for PermissionOverwrites
impl Sync for PermissionOverwrites
impl Unpin for PermissionOverwrites
impl UnwindSafe for PermissionOverwrites
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