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
/*
* 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 EnumOptionRequest {
/// Globally unique identifier of the resource, as a string.
#[serde(rename = "gid", skip_serializing_if = "Option::is_none")]
pub gid: Option<String>,
/// The base type of this resource.
#[serde(rename = "resource_type", skip_serializing_if = "Option::is_none")]
pub resource_type: Option<String>,
/// The name of the enum option.
#[serde(rename = "name", skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
/// Whether or not the enum option is a selectable value for the custom field.
#[serde(rename = "enabled", skip_serializing_if = "Option::is_none")]
pub enabled: Option<bool>,
/// The color of the enum option. Defaults to ‘none’.
#[serde(rename = "color", skip_serializing_if = "Option::is_none")]
pub color: 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 = "insert_before", skip_serializing_if = "Option::is_none")]
pub insert_before: 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 = "insert_after", skip_serializing_if = "Option::is_none")]
pub insert_after: Option<String>,
}
impl EnumOptionRequest {
pub fn new() -> EnumOptionRequest {
EnumOptionRequest {
gid: None,
resource_type: None,
name: None,
enabled: None,
color: None,
insert_before: None,
insert_after: None,
}
}
}