Skip to main content

windmill_api/models/
asset_usage_kind.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.624.0
7 * Contact: contact@windmill.dev
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// 
15#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
16pub enum AssetUsageKind {
17    #[serde(rename = "script")]
18    Script,
19    #[serde(rename = "flow")]
20    Flow,
21    #[serde(rename = "job")]
22    Job,
23
24}
25
26impl std::fmt::Display for AssetUsageKind {
27    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
28        match self {
29            Self::Script => write!(f, "script"),
30            Self::Flow => write!(f, "flow"),
31            Self::Job => write!(f, "job"),
32        }
33    }
34}
35
36impl Default for AssetUsageKind {
37    fn default() -> AssetUsageKind {
38        Self::Script
39    }
40}
41