pub struct TemplateRole {
pub color: u32,
pub hoist: bool,
pub id: Id<RoleMarker>,
pub mentionable: bool,
pub name: String,
pub permissions: Permissions,
pub tags: Option<RoleTags>,
}
Fields§
§color: u32
§hoist: bool
§id: Id<RoleMarker>
§mentionable: bool
§name: String
§permissions: Permissions
Tags about the role.
Trait Implementations§
source§impl Clone for TemplateRole
impl Clone for TemplateRole
source§fn clone(&self) -> TemplateRole
fn clone(&self) -> TemplateRole
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 TemplateRole
impl Debug for TemplateRole
source§impl<'de> Deserialize<'de> for TemplateRole
impl<'de> Deserialize<'de> for TemplateRole
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 TemplateRole
impl Hash for TemplateRole
source§impl PartialEq for TemplateRole
impl PartialEq for TemplateRole
source§impl Serialize for TemplateRole
impl Serialize for TemplateRole
impl Eq for TemplateRole
impl StructuralPartialEq for TemplateRole
Auto Trait Implementations§
impl Freeze for TemplateRole
impl RefUnwindSafe for TemplateRole
impl Send for TemplateRole
impl Sync for TemplateRole
impl Unpin for TemplateRole
impl UnwindSafe for TemplateRole
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
)