1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/*
* opensearch-client
*
* Rust Client for OpenSearch
*
* The version of the OpenAPI document: 3.1.0
* Contact: alberto.paro@gmail.com
* Generated by Paro OpenAPI Generator
*/
use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct Processor {
#[serde(rename = "time_in_millis", default, skip_serializing_if = "Option::is_none")]
pub time_in_millis: Option<String>, /// Number of failed operations for the processor.
#[serde(rename = "failed", default, skip_serializing_if = "Option::is_none")]
pub failed: Option<u32>, /// A duration. Units can be `nanos`, `micros`, `ms` (milliseconds), `s` (seconds), `m` (minutes), `h` (hours) and
/// `d` (days). Also accepts "0" without a unit and "-1" to indicate an unspecified value.
#[serde(rename = "time", default, skip_serializing_if = "Option::is_none")]
pub time: Option<String>, /// Number of documents transformed by the processor.
#[serde(rename = "count", default, skip_serializing_if = "Option::is_none")]
pub count: Option<u32>, /// Number of documents currently being transformed by the processor.
#[serde(rename = "current", default, skip_serializing_if = "Option::is_none")]
pub current: Option<u32>,
}
impl Processor {
pub fn new() -> Processor {
Processor {
time_in_millis: None,
failed: None,
time: None,
count: None,
current: None,
}
}
}