Documentation
/*
 * 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
 */

/// CustomFieldContextDefaultValueDateTime : The default value for a date time custom field.



#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct CustomFieldContextDefaultValueDateTime {
    /// The default date-time in ISO format. Ignored if `useCurrent` is true.
    #[serde(rename = "dateTime", skip_serializing_if = "Option::is_none")]
    pub date_time: Option<String>,
    /// Whether to use the current date.
    #[serde(rename = "useCurrent", skip_serializing_if = "Option::is_none")]
    pub use_current: Option<bool>,
    #[serde(rename = "type")]
    pub _type: String,
}

impl CustomFieldContextDefaultValueDateTime {
    /// The default value for a date time custom field.
    pub fn new(_type: String) -> CustomFieldContextDefaultValueDateTime {
        CustomFieldContextDefaultValueDateTime {
            date_time: None,
            use_current: None,
            _type,
        }
    }
}