trieve_client/models/group_data.rs
1/*
2 * Trieve API
3 *
4 * Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API.
5 *
6 * The version of the OpenAPI document: 0.11.7
7 * Contact: developers@trieve.ai
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12
13#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
14pub struct GroupData {
15 #[serde(rename = "groups")]
16 pub groups: Vec<models::ChunkGroupAndFileId>,
17 #[serde(rename = "total_pages")]
18 pub total_pages: i32,
19}
20
21impl GroupData {
22 pub fn new(groups: Vec<models::ChunkGroupAndFileId>, total_pages: i32) -> GroupData {
23 GroupData {
24 groups,
25 total_pages,
26 }
27 }
28}
29