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

/// SourceRules : Defines which fields to include or exclude in the response for a search query
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct SourceRules {
    /// List of fields to include in the response
    #[serde(rename = "includes", skip_serializing_if = "Option::is_none")]
    pub includes: Option<Vec<String>>,
    /// List of fields to exclude from the response
    #[serde(rename = "excludes", skip_serializing_if = "Option::is_none")]
    pub excludes: Option<Vec<String>>,
}

impl SourceRules {
    /// Defines which fields to include or exclude in the response for a search query
    pub fn new() -> SourceRules {
        SourceRules {
            includes: None,
            excludes: None,
        }
    }
}