artifact-keeper-client 1.1.0

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.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 CreateSessionResponse {
    #[serde(rename = "chunk_count")]
    pub chunk_count: i32,
    #[serde(rename = "chunk_size")]
    pub chunk_size: i32,
    #[serde(rename = "expires_at")]
    pub expires_at: String,
    #[serde(rename = "session_id")]
    pub session_id: uuid::Uuid,
}

impl CreateSessionResponse {
    pub fn new(chunk_count: i32, chunk_size: i32, expires_at: String, session_id: uuid::Uuid) -> CreateSessionResponse {
        CreateSessionResponse {
            chunk_count,
            chunk_size,
            expires_at,
            session_id,
        }
    }
}