manticoresearch 2.0.0

Сlient for Manticore Search.
Documentation
/*
 * Manticore Search Client
 *
 * Сlient for Manticore Search. 
 *
 * The version of the OpenAPI document: 5.0.0
 * Contact: info@manticoresearch.com
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

/// ReplaceDocumentRequest : Object containing the document data for replacing an existing document in a table.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ReplaceDocumentRequest {
    /// Object containing the new document data to replace the existing one.
    #[serde(rename = "doc")]
    pub doc: serde_json::Value,
}

impl ReplaceDocumentRequest {
    /// Object containing the document data for replacing an existing document in a table.
    pub fn new(doc: serde_json::Value) -> ReplaceDocumentRequest {
        ReplaceDocumentRequest {
            doc,
        }
    }
}