jira/gen/models/field_changed_clause.rs
1/*
2 * The Jira Cloud platform REST API
3 *
4 * Jira Cloud platform REST API documentation
5 *
6 * The version of the OpenAPI document: 1001.0.0-SNAPSHOT
7 * Contact: ecosystem@atlassian.com
8 * Generated by: https://openapi-generator.tech
9 */
10
11/// FieldChangedClause : A clause that asserts whether a field was changed. For example, `status CHANGED AFTER startOfMonth(-1M)`.See [CHANGED](https://confluence.atlassian.com/x/dgiiLQ#Advancedsearching-operatorsreference-CHANGEDCHANGED) for more information about the CHANGED operator.
12
13#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
14pub struct FieldChangedClause {
15 #[serde(rename = "field")]
16 pub field: crate::gen::models::JqlQueryField,
17 /// The operator applied to the field.
18 #[serde(rename = "operator")]
19 pub operator: Operator,
20 /// The list of time predicates.
21 #[serde(rename = "predicates")]
22 pub predicates: Vec<crate::gen::models::JqlQueryClauseTimePredicate>,
23}
24
25impl FieldChangedClause {
26 /// A clause that asserts whether a field was changed. For example, `status CHANGED AFTER startOfMonth(-1M)`.See [CHANGED](https://confluence.atlassian.com/x/dgiiLQ#Advancedsearching-operatorsreference-CHANGEDCHANGED) for more information about the CHANGED operator.
27 pub fn new(
28 field: crate::gen::models::JqlQueryField,
29 operator: Operator,
30 predicates: Vec<crate::gen::models::JqlQueryClauseTimePredicate>,
31 ) -> FieldChangedClause {
32 FieldChangedClause {
33 field,
34 operator,
35 predicates,
36 }
37 }
38}
39
40/// The operator applied to the field.
41#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
42pub enum Operator {
43 #[serde(rename = "changed")]
44 Changed,
45}