/*
 * Orvanta API
 *
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 1.2.0
 * Contact: contact@orvanta.cloud
 * Generated by: https://openapi-generator.tech
 */

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

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct GlobalUsernameInfo200Response {
    #[serde(rename = "username")]
    pub username: String,
    #[serde(rename = "workspace_usernames")]
    pub workspace_usernames: Vec<models::GlobalUsernameInfo200ResponseWorkspaceUsernamesInner>,
}

impl GlobalUsernameInfo200Response {
    pub fn new(username: String, workspace_usernames: Vec<models::GlobalUsernameInfo200ResponseWorkspaceUsernamesInner>) -> GlobalUsernameInfo200Response {
        GlobalUsernameInfo200Response {
            username,
            workspace_usernames,
        }
    }
}

