windmill-api 1.746.0

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
Documentation
/*
 * Windmill API
 *
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 1.746.0
 * Contact: contact@windmill.dev
 * Generated by: https://openapi-generator.tech
 */

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

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct PartitionsInRange {
    /// the pipeline script that materializes the asset (managed `// materialize` target, or a partitioned writer using the SDK helpers) — the runnable a backfill launches
    #[serde(rename = "producer_path")]
    pub producer_path: String,
    #[serde(rename = "partition_kind")]
    pub partition_kind: PartitionKind,
    #[serde(rename = "partitions")]
    pub partitions: Vec<models::PartitionsInRangePartitionsInner>,
}

impl PartitionsInRange {
    pub fn new(producer_path: String, partition_kind: PartitionKind, partitions: Vec<models::PartitionsInRangePartitionsInner>) -> PartitionsInRange {
        PartitionsInRange {
            producer_path,
            partition_kind,
            partitions,
        }
    }
}
/// 
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum PartitionKind {
    #[serde(rename = "daily")]
    Daily,
    #[serde(rename = "hourly")]
    Hourly,
    #[serde(rename = "weekly")]
    Weekly,
    #[serde(rename = "monthly")]
    Monthly,
    #[serde(rename = "dynamic")]
    Dynamic,
}

impl Default for PartitionKind {
    fn default() -> PartitionKind {
        Self::Daily
    }
}