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
/*
* Asana
*
* This is the interface for interacting with the [Asana Platform](https://developers.asana.com). Our API reference is generated from our [OpenAPI spec] (https://raw.githubusercontent.com/Asana/developer-docs/master/defs/asana_oas.yaml).
*
* The version of the OpenAPI document: 1.0
*
* Generated by: https://openapi-generator.tech
*/
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct EnumOptionInsertRequest {
/// The gid of the enum option to relocate.
#[serde(rename = "enum_option")]
pub enum_option: String,
/// An existing enum option within this custom field before which the new enum option should be inserted. Cannot be provided together with after_enum_option.
#[serde(
rename = "before_enum_option",
skip_serializing_if = "Option::is_none"
)]
pub before_enum_option: Option<String>,
/// An existing enum option within this custom field after which the new enum option should be inserted. Cannot be provided together with before_enum_option.
#[serde(
rename = "after_enum_option",
skip_serializing_if = "Option::is_none"
)]
pub after_enum_option: Option<String>,
}
impl EnumOptionInsertRequest {
pub fn new(enum_option: String) -> EnumOptionInsertRequest {
EnumOptionInsertRequest {
enum_option,
before_enum_option: None,
after_enum_option: None,
}
}
}