/*
 * 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 PaginationInfo {
    #[serde(rename = "page")]
    pub page: i32,
    #[serde(rename = "per_page")]
    pub per_page: i32,
    #[serde(rename = "total")]
    pub total: i64,
    #[serde(rename = "total_pages")]
    pub total_pages: i32,
}

impl PaginationInfo {
    pub fn new(page: i32, per_page: i32, total: i64, total_pages: i32) -> PaginationInfo {
        PaginationInfo {
            page,
            per_page,
            total,
            total_pages,
        }
    }
}

