#[non_exhaustive]pub struct RoleTags {
pub bot_id: Option<UserId>,
pub integration_id: Option<IntegrationId>,
pub premium_subscriber: bool,
pub subscription_listing_id: Option<SkuId>,
pub available_for_purchase: bool,
pub guild_connections: bool,
}Expand description
The tags of a role: what the role belongs to.
On the wire, the boolean tags are keys whose value is null when true and that are absent
when false; here they are plain bools.
discord.js counterpart: APIRoleTags (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.bot_id: Option<UserId>The bot this role belongs to (the bot’s managed role).
integration_id: Option<IntegrationId>The integration this role belongs to.
Whether this is the guild’s Booster role.
subscription_listing_id: Option<SkuId>The SKU and listing of the role’s subscription.
available_for_purchase: boolWhether the role can be purchased.
guild_connections: boolWhether the role is a guild’s linked role.
Trait Implementations§
impl Copy for RoleTags
Source§impl<'de> Deserialize<'de> for RoleTags
impl<'de> Deserialize<'de> for RoleTags
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 RoleTags
impl StructuralPartialEq for RoleTags
Auto Trait Implementations§
impl Forget for RoleTags
impl Freeze for RoleTags
impl Move for RoleTags
impl RefUnwindSafe for RoleTags
impl Send for RoleTags
impl Sync for RoleTags
impl Unpin for RoleTags
impl UnsafeUnpin for RoleTags
impl UnwindSafe for RoleTags
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