/*
 * 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 ListDiscordGuildMembers200ResponseDataInner {
    #[serde(rename = "user", skip_serializing_if = "Option::is_none")]
    pub user: Option<Box<models::ListDiscordGuildMembers200ResponseDataInnerUser>>,
    /// Guild-specific nickname
    #[serde(rename = "nick", skip_serializing_if = "Option::is_none")]
    pub nick: Option<String>,
    /// Snowflake IDs of roles assigned to this member
    #[serde(rename = "roles", skip_serializing_if = "Option::is_none")]
    pub roles: Option<Vec<String>>,
    #[serde(rename = "joined_at", skip_serializing_if = "Option::is_none")]
    pub joined_at: Option<String>,
    /// When the user started boosting the server
    #[serde(rename = "premium_since", skip_serializing_if = "Option::is_none")]
    pub premium_since: Option<String>,
}

impl ListDiscordGuildMembers200ResponseDataInner {
    pub fn new() -> ListDiscordGuildMembers200ResponseDataInner {
        ListDiscordGuildMembers200ResponseDataInner {
            user: None,
            nick: None,
            roles: None,
            joined_at: None,
            premium_since: None,
        }
    }
}
