vapi_client/models/
test_suite_tests_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 TestSuiteTestsPaginatedResponse {
19    /// A list of test suite tests.
20    #[serde(rename = "results")]
21    pub results: Vec<models::TestSuiteTestsPaginatedResponseResultsInner>,
22    /// Metadata about the pagination.
23    #[serde(rename = "metadata")]
24    pub metadata: models::PaginationMeta,
25}
26
27impl TestSuiteTestsPaginatedResponse {
28    pub fn new(
29        results: Vec<models::TestSuiteTestsPaginatedResponseResultsInner>,
30        metadata: models::PaginationMeta,
31    ) -> TestSuiteTestsPaginatedResponse {
32        TestSuiteTestsPaginatedResponse { results, metadata }
33    }
34}