hi_jira2/models/
version_move_bean.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
12
13
14#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
15pub struct VersionMoveBean {
16    /// The URL (self link) of the version after which to place the moved version. Cannot be used with `position`.
17    #[serde(rename = "after", skip_serializing_if = "Option::is_none")]
18    pub after: Option<String>,
19    /// An absolute position in which to place the moved version. Cannot be used with `after`.
20    #[serde(rename = "position", skip_serializing_if = "Option::is_none")]
21    pub position: Option<Position>,
22}
23
24impl VersionMoveBean {
25    pub fn new() -> VersionMoveBean {
26        VersionMoveBean {
27            after: None,
28            position: None,
29        }
30    }
31}
32
33/// An absolute position in which to place the moved version. Cannot be used with `after`.
34#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
35pub enum Position {
36    #[serde(rename = "Earlier")]
37    Earlier,
38    #[serde(rename = "Later")]
39    Later,
40    #[serde(rename = "First")]
41    First,
42    #[serde(rename = "Last")]
43    Last,
44}
45
46impl Default for Position {
47    fn default() -> Position {
48        Self::Earlier
49    }
50}
51