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
/*
* 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 crate::common;
use serde::{Deserialize, Serialize};
/// Transition
/// A transition into a new state.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct Transition {
#[serde(
rename = "conditions",
default,
skip_serializing_if = "Option::is_none"
)]
pub conditions: Option<serde_json::Value>,
#[serde(
rename = "state_name",
default,
skip_serializing_if = "Option::is_none"
)]
pub state_name: Option<String>,
}
impl Transition {
/// A transition into a new state.
pub fn new() -> Transition {
Transition {
conditions: None,
state_name: None,
}
}
}