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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
/*
* The Jira Cloud platform REST API
*
* Jira Cloud platform REST API documentation
*
* The version of the OpenAPI document: 1001.0.0-SNAPSHOT
* Contact: ecosystem@atlassian.com
* Generated by: https://openapi-generator.tech
*/
/// JiraExpressionValidationError : Details about syntax and type errors. The error details apply to the entire expression, unless the object includes: * `line` and `column` * `expression`
#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct JiraExpressionValidationError {
/// The text line in which the error occurred.
#[serde(rename = "line", skip_serializing_if = "Option::is_none")]
pub line: Option<i32>,
/// The text column in which the error occurred.
#[serde(rename = "column", skip_serializing_if = "Option::is_none")]
pub column: Option<i32>,
/// The part of the expression in which the error occurred.
#[serde(rename = "expression", skip_serializing_if = "Option::is_none")]
pub expression: Option<String>,
/// Details about the error.
#[serde(rename = "message")]
pub message: String,
/// The error type.
#[serde(rename = "type")]
pub _type: Type,
}
impl JiraExpressionValidationError {
/// Details about syntax and type errors. The error details apply to the entire expression, unless the object includes: * `line` and `column` * `expression`
pub fn new(message: String, _type: Type) -> JiraExpressionValidationError {
JiraExpressionValidationError {
line: None,
column: None,
expression: None,
message,
_type,
}
}
}
/// The error type.
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum Type {
#[serde(rename = "syntax")]
Syntax,
#[serde(rename = "type")]
_Type,
#[serde(rename = "other")]
Other,
}
impl Default for Type {
fn default() -> Type {
Self::Syntax
}
}