/*
 * Artifact Keeper API
 *
 * Enterprise artifact registry supporting 45+ package formats.
 *
 * The version of the OpenAPI document: 1.0.0-rc.3
 * 
 * Generated by: https://openapi-generator.tech
 */

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

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ChunkResponse {
    #[serde(rename = "bytes_received")]
    pub bytes_received: i64,
    #[serde(rename = "chunk_index")]
    pub chunk_index: i32,
    #[serde(rename = "chunks_completed")]
    pub chunks_completed: i32,
    #[serde(rename = "chunks_remaining")]
    pub chunks_remaining: i32,
}

impl ChunkResponse {
    pub fn new(bytes_received: i64, chunk_index: i32, chunks_completed: i32, chunks_remaining: i32) -> ChunkResponse {
        ChunkResponse {
            bytes_received,
            chunk_index,
            chunks_completed,
            chunks_remaining,
        }
    }
}

