trieve_client/models/
search_chunk_query_response_body.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 SearchChunkQueryResponseBody {
15    #[serde(rename = "score_chunks")]
16    pub score_chunks: Vec<models::ScoreChunkDto>,
17    #[serde(rename = "total_chunk_pages")]
18    pub total_chunk_pages: i64,
19}
20
21impl SearchChunkQueryResponseBody {
22    pub fn new(score_chunks: Vec<models::ScoreChunkDto>, total_chunk_pages: i64) -> SearchChunkQueryResponseBody {
23        SearchChunkQueryResponseBody {
24            score_chunks,
25            total_chunk_pages,
26        }
27    }
28}
29