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

/// SuccessResponse : Response object indicating the success of an operation, such as inserting or updating a document
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct SuccessResponse {
    /// Name of the document table
    #[serde(rename = "table", skip_serializing_if = "Option::is_none")]
    pub table: Option<String>,
    /// ID of the document affected by the request operation
    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
    pub id: Option<u64>,
    /// Indicates whether the document was created as a result of the operation
    #[serde(rename = "created", skip_serializing_if = "Option::is_none")]
    pub created: Option<bool>,
    /// Result of the operation, typically 'created', 'updated', or 'deleted'
    #[serde(rename = "result", skip_serializing_if = "Option::is_none")]
    pub result: Option<String>,
    /// Indicates whether the document was found in the table
    #[serde(rename = "found", skip_serializing_if = "Option::is_none")]
    pub found: Option<bool>,
    /// HTTP status code representing the result of the operation
    #[serde(rename = "status", skip_serializing_if = "Option::is_none")]
    pub status: Option<i32>,
}

impl SuccessResponse {
    /// Response object indicating the success of an operation, such as inserting or updating a document
    pub fn new() -> SuccessResponse {
        SuccessResponse {
            table: None,
            id: None,
            created: None,
            result: None,
            found: None,
            status: None,
        }
    }
}