trieve_client/models/
single_queued_chunk_response.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 SingleQueuedChunkResponse {
15    #[serde(rename = "chunk_metadata")]
16    pub chunk_metadata: Box<models::ChunkMetadata>,
17    /// The current position the last access item is in the queue
18    #[serde(rename = "pos_in_queue")]
19    pub pos_in_queue: i32,
20}
21
22impl SingleQueuedChunkResponse {
23    pub fn new(chunk_metadata: models::ChunkMetadata, pos_in_queue: i32) -> SingleQueuedChunkResponse {
24        SingleQueuedChunkResponse {
25            chunk_metadata: Box::new(chunk_metadata),
26            pos_in_queue,
27        }
28    }
29}
30