/*
 * Artifact Keeper API
 *
 * Enterprise artifact registry supporting 45+ package formats.
 *
 * The version of the OpenAPI document: 1.2.1
 * 
 * Generated by: https://openapi-generator.tech
 */

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

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct GroupMemberResponse {
    #[serde(rename = "display_name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub display_name: Option<Option<String>>,
    #[serde(rename = "joined_at")]
    pub joined_at: String,
    #[serde(rename = "user_id")]
    pub user_id: uuid::Uuid,
    #[serde(rename = "username")]
    pub username: String,
}

impl GroupMemberResponse {
    pub fn new(joined_at: String, user_id: uuid::Uuid, username: String) -> GroupMemberResponse {
        GroupMemberResponse {
            display_name: None,
            joined_at,
            user_id,
            username,
        }
    }
}

