jira2/models/
custom_field_context_default_value_text_field.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/// CustomFieldContextDefaultValueTextField : The default text for a text custom field.
12
13
14
15#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
16pub struct CustomFieldContextDefaultValueTextField {
17    /// The default text. The maximum length is 254 characters.
18    #[serde(rename = "text", skip_serializing_if = "Option::is_none")]
19    pub text: Option<String>,
20    #[serde(rename = "type")]
21    pub _type: String,
22}
23
24impl CustomFieldContextDefaultValueTextField {
25    /// The default text for a text custom field.
26    pub fn new(_type: String) -> CustomFieldContextDefaultValueTextField {
27        CustomFieldContextDefaultValueTextField {
28            text: None,
29            _type,
30        }
31    }
32}
33
34