trieve-client 0.11.7

Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API.
Documentation
/*
 * Trieve API
 *
 * Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API.
 *
 * The version of the OpenAPI document: 0.11.7
 * Contact: developers@trieve.ai
 * Generated by: https://openapi-generator.tech
 */

use crate::models;

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct SearchChunkQueryResponseBody {
    #[serde(rename = "score_chunks")]
    pub score_chunks: Vec<models::ScoreChunkDto>,
    #[serde(rename = "total_chunk_pages")]
    pub total_chunk_pages: i64,
}

impl SearchChunkQueryResponseBody {
    pub fn new(score_chunks: Vec<models::ScoreChunkDto>, total_chunk_pages: i64) -> SearchChunkQueryResponseBody {
        SearchChunkQueryResponseBody {
            score_chunks,
            total_chunk_pages,
        }
    }
}