/*
 * 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 ListAvailableTeamsIds200Response {
    #[serde(rename = "teams", skip_serializing_if = "Option::is_none")]
    pub teams: Option<Vec<models::ListAvailableTeamsIds200ResponseTeamsInner>>,
    /// Total number of teams across all pages
    #[serde(rename = "total_count", skip_serializing_if = "Option::is_none")]
    pub total_count: Option<i32>,
    /// Number of teams per page (configurable via TEAMS_PER_PAGE env var)
    #[serde(rename = "per_page", skip_serializing_if = "Option::is_none")]
    pub per_page: Option<i32>,
    /// URL to fetch next page of results. Null if no more pages.
    #[serde(rename = "next_link", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub next_link: Option<Option<String>>,
}

impl ListAvailableTeamsIds200Response {
    pub fn new() -> ListAvailableTeamsIds200Response {
        ListAvailableTeamsIds200Response {
            teams: None,
            total_count: None,
            per_page: None,
            next_link: None,
        }
    }
}

