twilight_model/guild/template/
role.rs

1use crate::{
2    guild::{Permissions, RoleTags},
3    id::{marker::RoleMarker, Id},
4};
5use serde::{Deserialize, Serialize};
6
7#[derive(Clone, Debug, Deserialize, Eq, Hash, PartialEq, Serialize)]
8pub struct TemplateRole {
9    pub color: u32,
10    pub hoist: bool,
11    pub id: Id<RoleMarker>,
12    pub mentionable: bool,
13    pub name: String,
14    pub permissions: Permissions,
15    /// Tags about the role.
16    #[serde(skip_serializing_if = "Option::is_none")]
17    pub tags: Option<RoleTags>,
18}