/*
* Manager 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::manager::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct PaginatedCallResponse {
#[serde(rename = "items")]
pub items: Vec<models::Call>,
#[serde(rename = "pagination")]
pub pagination: Box<models::Pagination>,
}
impl PaginatedCallResponse {
pub fn new(items: Vec<models::Call>, pagination: models::Pagination) -> PaginatedCallResponse {
PaginatedCallResponse {
items,
pagination: Box::new(pagination),
}
}
}