Skip to main content

windmill_api/models/
partitions_in_range_partitions_inner.rs

1/*
2 * Windmill API
3 *
4 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5 *
6 * The version of the OpenAPI document: 1.746.0
7 * Contact: contact@windmill.dev
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct PartitionsInRangePartitionsInner {
16    #[serde(rename = "partition")]
17    pub partition: String,
18    #[serde(rename = "status")]
19    pub status: Status,
20}
21
22impl PartitionsInRangePartitionsInner {
23    pub fn new(partition: String, status: Status) -> PartitionsInRangePartitionsInner {
24        PartitionsInRangePartitionsInner {
25            partition,
26            status,
27        }
28    }
29}
30/// 
31#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
32pub enum Status {
33    #[serde(rename = "missing")]
34    Missing,
35    #[serde(rename = "running")]
36    Running,
37    #[serde(rename = "materialized")]
38    Materialized,
39    #[serde(rename = "failed")]
40    Failed,
41}
42
43impl Default for Status {
44    fn default() -> Status {
45        Self::Missing
46    }
47}
48