artifact-keeper-client 1.2.1

Rust client for the Artifact Keeper REST API
Documentation
/*
 * 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};

/// PypiTrackRequest : Body for declaring that a locally-owned PyPI project tracks an upstream one.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct PypiTrackRequest {
    /// Upstream Simple index project URL this local project tracks, e.g. `https://pypi.org/simple/acme-sdk/`. Recorded and emitted as the PEP 708 `tracks` value.
    #[serde(rename = "tracks_url")]
    pub tracks_url: String,
}

impl PypiTrackRequest {
    /// Body for declaring that a locally-owned PyPI project tracks an upstream one.
    pub fn new(tracks_url: String) -> PypiTrackRequest {
        PypiTrackRequest {
            tracks_url,
        }
    }
}