manticore_openapi/models/
source_by_rules.rs

1/*
2 * Manticore Search Client
3 *
4 * Сlient for Manticore Search. 
5 *
6 * The version of the OpenAPI document: 3.3.1
7 * Contact: info@manticoresearch.com
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// SourceByRules : Query fields to be included/excluded to/from response
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct SourceByRules {
17    #[serde(rename = "includes")]
18    pub includes: Vec<String>,
19    #[serde(rename = "excludes")]
20    pub excludes: Vec<String>,
21}
22
23impl SourceByRules {
24    /// Query fields to be included/excluded to/from response
25    pub fn new(includes: Vec<String>, excludes: Vec<String>) -> SourceByRules {
26        SourceByRules {
27            includes,
28            excludes,
29        }
30    }
31}
32