/*
 * Artifact Keeper API
 *
 * REST API for Artifact Keeper, an open-source universal artifact registry. Covers user management, repositories, artifacts, search, security scanning, SBOM, dependency tracking, SSO, analytics, monitoring, telemetry, lifecycle policies, plugins, edge nodes, migration, and administration. Format-specific protocol endpoints (npm, PyPI, Maven, Docker/OCI, etc.) are not included; those follow their respective upstream specifications.
 *
 * The version of the OpenAPI document: 1.0.0-a2
 * 
 * Generated by: https://openapi-generator.tech
 */

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

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ChunkManifest {
    #[serde(rename = "session_id")]
    pub session_id: uuid::Uuid,
    #[serde(rename = "total_chunks")]
    pub total_chunks: i32,
    #[serde(rename = "chunk_size_bytes")]
    pub chunk_size_bytes: i32,
    #[serde(rename = "chunks")]
    pub chunks: Vec<models::ListArtifactChunks200ResponseInner>,
}

impl ChunkManifest {
    pub fn new(session_id: uuid::Uuid, total_chunks: i32, chunk_size_bytes: i32, chunks: Vec<models::ListArtifactChunks200ResponseInner>) -> ChunkManifest {
        ChunkManifest {
            session_id,
            total_chunks,
            chunk_size_bytes,
            chunks,
        }
    }
}

