/*
 * 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};

/// PypiTrackResponse : A single PEP 708 `tracks` declaration.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct PypiTrackResponse {
    /// PEP 503 normalized project name.
    #[serde(rename = "normalized_name")]
    pub normalized_name: String,
    #[serde(rename = "repository_key")]
    pub repository_key: String,
    #[serde(rename = "tracks_url")]
    pub tracks_url: String,
}

impl PypiTrackResponse {
    /// A single PEP 708 `tracks` declaration.
    pub fn new(normalized_name: String, repository_key: String, tracks_url: String) -> PypiTrackResponse {
        PypiTrackResponse {
            normalized_name,
            repository_key,
            tracks_url,
        }
    }
}

