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};

/// UpdateResponse : Success response returned after updating one or more documents
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct UpdateResponse {
    /// Name of the document table
    #[serde(rename = "table", skip_serializing_if = "Option::is_none")]
    pub table: Option<String>,
    /// Number of documents updated
    #[serde(rename = "updated", skip_serializing_if = "Option::is_none")]
    pub updated: Option<i32>,
    /// Document ID
    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
    pub id: Option<u64>,
    /// Result of the update operation, typically 'updated'
    #[serde(rename = "result", skip_serializing_if = "Option::is_none")]
    pub result: Option<String>,
}

impl UpdateResponse {
    /// Success response returned after updating one or more documents
    pub fn new() -> UpdateResponse {
        UpdateResponse {
            table: None,
            updated: None,
            id: None,
            result: None,
        }
    }
}