Skip to main content

trieve_client/models/
query_details.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 QueryDetails {
15    #[serde(rename = "search_id")]
16    pub search_id: uuid::Uuid,
17    #[serde(rename = "type")]
18    pub r#type: Type,
19}
20
21impl QueryDetails {
22    pub fn new(search_id: uuid::Uuid, r#type: Type) -> QueryDetails {
23        QueryDetails {
24            search_id,
25            r#type,
26        }
27    }
28}
29/// 
30#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
31pub enum Type {
32    #[serde(rename = "query_details")]
33    QueryDetails,
34}
35
36impl Default for Type {
37    fn default() -> Type {
38        Self::QueryDetails
39    }
40}
41