jira_v3_openapi 1.6.0

Jira Cloud platform REST API lib (OpenAPI document version: 1001.0.0-SNAPSHOT-af42c50d50804c2f1b8ad4bb80d52c53890867e2)
Documentation
/*
 * The Jira Cloud platform REST API
 *
 * Jira Cloud platform REST API documentation
 *
 * The version of the OpenAPI document: 1001.0.0-SNAPSHOT-af42c50d50804c2f1b8ad4bb80d52c53890867e2
 * Contact: ecosystem@atlassian.com
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

/// SwimlanesPayload : The payload for customising a swimlanes on a board
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct SwimlanesPayload {
    /// The custom swimlane definitions.
    #[serde(rename = "customSwimlanes", skip_serializing_if = "Option::is_none")]
    pub custom_swimlanes: Option<Vec<models::SwimlanePayload>>,
    /// The name of the custom swimlane to use for work items that don't match any other swimlanes.
    #[serde(rename = "defaultCustomSwimlaneName", skip_serializing_if = "Option::is_none")]
    pub default_custom_swimlane_name: Option<String>,
    /// The swimlane strategy for the board.
    #[serde(rename = "swimlaneStrategy", skip_serializing_if = "Option::is_none")]
    pub swimlane_strategy: Option<SwimlaneStrategy>,
}

impl SwimlanesPayload {
    /// The payload for customising a swimlanes on a board
    pub fn new() -> SwimlanesPayload {
        SwimlanesPayload {
            custom_swimlanes: None,
            default_custom_swimlane_name: None,
            swimlane_strategy: None,
        }
    }
}
/// The swimlane strategy for the board.
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum SwimlaneStrategy {
    #[serde(rename = "none")]
    None,
    #[serde(rename = "custom")]
    Custom,
    #[serde(rename = "parentChild")]
    ParentChild,
    #[serde(rename = "assignee")]
    Assignee,
    #[serde(rename = "assigneeUnassignedFirst")]
    AssigneeUnassignedFirst,
    #[serde(rename = "epic")]
    Epic,
    #[serde(rename = "project")]
    Project,
    #[serde(rename = "issueparent")]
    Issueparent,
    #[serde(rename = "issuechildren")]
    Issuechildren,
    #[serde(rename = "request_type")]
    RequestType,
}

impl Default for SwimlaneStrategy {
    fn default() -> SwimlaneStrategy {
        Self::None
    }
}