/*
 * Zernio API
 *
 * API reference for Zernio. Authenticate with a Bearer API key. Base URL: https://zernio.com/api
 *
 * The version of the OpenAPI document: 1.0.4
 * Contact: support@zernio.com
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ListDiscordGuildRoles200ResponseDataInner {
    /// Role snowflake ID
    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
    pub id: Option<String>,
    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    /// Decimal color (0 = no color). Convert to hex via .toString(16).
    #[serde(rename = "color", skip_serializing_if = "Option::is_none")]
    pub color: Option<i32>,
    /// Position in role hierarchy (higher = more authority)
    #[serde(rename = "position", skip_serializing_if = "Option::is_none")]
    pub position: Option<i32>,
    /// Permissions bitfield as a stringified integer
    #[serde(rename = "permissions", skip_serializing_if = "Option::is_none")]
    pub permissions: Option<String>,
    /// True for integration-managed roles (bot roles)
    #[serde(rename = "managed", skip_serializing_if = "Option::is_none")]
    pub managed: Option<bool>,
    #[serde(rename = "mentionable", skip_serializing_if = "Option::is_none")]
    pub mentionable: Option<bool>,
    /// True if role is displayed separately in member list
    #[serde(rename = "hoist", skip_serializing_if = "Option::is_none")]
    pub hoist: Option<bool>,
}

impl ListDiscordGuildRoles200ResponseDataInner {
    pub fn new() -> ListDiscordGuildRoles200ResponseDataInner {
        ListDiscordGuildRoles200ResponseDataInner {
            id: None,
            name: None,
            color: None,
            position: None,
            permissions: None,
            managed: None,
            mentionable: None,
            hoist: None,
        }
    }
}
