#[non_exhaustive]pub struct TemplateOverwrite {
pub id: u64,
pub kind: OverwriteType,
pub allow: Permissions,
pub deny: Permissions,
}Expand description
A permission overwrite in a TemplateChannel (D-059).
discord.js counterpart: a permission overwrite of APITemplateSerializedSourceGuild (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.id: u64The placeholder ID of the role (or the ID of the member).
kind: OverwriteTypeWhether id is a role or a member.
allow: PermissionsThe allowed permissions.
deny: PermissionsThe denied permissions.
Trait Implementations§
Source§impl Clone for TemplateOverwrite
impl Clone for TemplateOverwrite
impl Copy for TemplateOverwrite
Source§impl Debug for TemplateOverwrite
impl Debug for TemplateOverwrite
Source§impl<'de> Deserialize<'de> for TemplateOverwrite
impl<'de> Deserialize<'de> for TemplateOverwrite
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
impl Eq for TemplateOverwrite
Source§impl Hash for TemplateOverwrite
impl Hash for TemplateOverwrite
Source§impl PartialEq for TemplateOverwrite
impl PartialEq for TemplateOverwrite
Source§impl Serialize for TemplateOverwrite
impl Serialize for TemplateOverwrite
impl StructuralPartialEq for TemplateOverwrite
Auto Trait Implementations§
impl Freeze for TemplateOverwrite
impl RefUnwindSafe for TemplateOverwrite
impl Send for TemplateOverwrite
impl Sync for TemplateOverwrite
impl Unpin for TemplateOverwrite
impl UnsafeUnpin for TemplateOverwrite
impl UnwindSafe for TemplateOverwrite
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