babelforce-manager-sdk 0.42.3

Rust SDK for the babelforce manager APIs — auth, user & agent management, call reporting, metrics, and task automations.
Documentation
/*
 * babelforce User API
 *
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 0.0.0-dev
 * Contact: support@babelforce.com
 * Generated by: https://openapi-generator.tech
 */

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

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct Pagination {
    #[serde(rename = "pages")]
    pub pages: i32,
    #[serde(rename = "total")]
    pub total: i32,
    #[serde(rename = "current")]
    pub current: i32,
    #[serde(rename = "max")]
    pub max: i32,
    #[serde(rename = "next", skip_serializing_if = "Option::is_none")]
    pub next: Option<String>,
}

impl Pagination {
    pub fn new(pages: i32, total: i32, current: i32, max: i32) -> Pagination {
        Pagination {
            pages,
            total,
            current,
            max,
            next: None,
        }
    }
}