hi_jira2/models/custom_field_context_default_value_float.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/// CustomFieldContextDefaultValueFloat : Default value for a float (number) custom field.
12
13
14
15#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
16pub struct CustomFieldContextDefaultValueFloat {
17 /// The default floating-point number.
18 #[serde(rename = "number")]
19 pub number: f64,
20 #[serde(rename = "type")]
21 pub _type: String,
22}
23
24impl CustomFieldContextDefaultValueFloat {
25 /// Default value for a float (number) custom field.
26 pub fn new(number: f64, _type: String) -> CustomFieldContextDefaultValueFloat {
27 CustomFieldContextDefaultValueFloat {
28 number,
29 _type,
30 }
31 }
32}
33
34