jirav2/models/
project_feature_state.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/// ProjectFeatureState : Details of the feature state.
12
13
14
15#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
16pub struct ProjectFeatureState {
17    /// The feature state.
18    #[serde(rename = "state", skip_serializing_if = "Option::is_none")]
19    pub state: Option<State>,
20}
21
22impl ProjectFeatureState {
23    /// Details of the feature state.
24    pub fn new() -> ProjectFeatureState {
25        ProjectFeatureState {
26            state: None,
27        }
28    }
29}
30
31/// The feature state.
32#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
33pub enum State {
34    #[serde(rename = "ENABLED")]
35    ENABLED,
36    #[serde(rename = "DISABLED")]
37    DISABLED,
38    #[serde(rename = "COMING_SOON")]
39    COMINGSOON,
40}
41
42impl Default for State {
43    fn default() -> State {
44        Self::ENABLED
45    }
46}
47