trieve_client/models/
groups_bookmark_query_result.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 GroupsBookmarkQueryResult {
15    #[serde(rename = "chunks")]
16    pub chunks: Vec<models::ChunkMetadataStringTagSet>,
17    #[serde(rename = "group")]
18    pub group: Box<models::ChunkGroupAndFileId>,
19    #[serde(rename = "total_pages")]
20    pub total_pages: i64,
21}
22
23impl GroupsBookmarkQueryResult {
24    pub fn new(chunks: Vec<models::ChunkMetadataStringTagSet>, group: models::ChunkGroupAndFileId, total_pages: i64) -> GroupsBookmarkQueryResult {
25        GroupsBookmarkQueryResult {
26            chunks,
27            group: Box::new(group),
28            total_pages,
29        }
30    }
31}
32