vapi_client/models/
call_paginated_response.rs

1/*
2 * Vapi API
3 *
4 * API for building voice assistants
5 *
6 * The version of the OpenAPI document: 1.0
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11use serde::{Deserialize, Serialize};
12use utoipa::ToSchema;
13
14
15use crate::models;
16
17#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize, ToSchema)]
18pub struct CallPaginatedResponse {
19    #[serde(rename = "results")]
20    pub results: Vec<models::Call>,
21    #[serde(rename = "metadata")]
22    pub metadata: models::PaginationMeta,
23}
24
25impl CallPaginatedResponse {
26    pub fn new(
27        results: Vec<models::Call>,
28        metadata: models::PaginationMeta,
29    ) -> CallPaginatedResponse {
30        CallPaginatedResponse { results, metadata }
31    }
32}