/*
* Open Logistics — Shiprocket
*
* OpenAPI description of the Shiprocket endpoints wrapped by `open-logistics`. Source of truth for generated Python and Rust clients. Operation IDs and schema field names are intentionally snake_case so every language exposes the same names. Two TypeScript methods (`checkServiceability` and `calculateRates`) call `GET /courier/serviceability`; OpenAPI permits one operation per path + method, so this spec exposes a single `courier_serviceability` operation. Language facades may alias it as `calculate_rates`.
*
* The version of the OpenAPI document: 0.2.2
*
* Generated by: https://openapi-generator.tech
*/
use crate::shiprocket::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct Pagination {
#[serde(rename = "total")]
pub total: i32,
#[serde(rename = "count")]
pub count: i32,
#[serde(rename = "per_page")]
pub per_page: i32,
#[serde(rename = "current_page")]
pub current_page: i32,
#[serde(rename = "total_pages")]
pub total_pages: i32,
}
impl Pagination {
pub fn new(total: i32, count: i32, per_page: i32, current_page: i32, total_pages: i32) -> Pagination {
Pagination {
total,
count,
per_page,
current_page,
total_pages,
}
}
}