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 RateQueryRequest {
    #[serde(rename = "note", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub note: Option<Option<String>>,
    #[serde(rename = "query_id")]
    pub query_id: uuid::Uuid,
    #[serde(rename = "rating")]
    pub rating: i32,
}

impl RateQueryRequest {
    pub fn new(query_id: uuid::Uuid, rating: i32) -> RateQueryRequest {
        RateQueryRequest {
            note: None,
            query_id,
            rating,
        }
    }
}