windmill_api/models/
star_request.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.500.2
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 StarRequest {
16    #[serde(rename = "path", skip_serializing_if = "Option::is_none")]
17    pub path: Option<String>,
18    #[serde(rename = "favorite_kind", skip_serializing_if = "Option::is_none")]
19    pub favorite_kind: Option<FavoriteKind>,
20}
21
22impl StarRequest {
23    pub fn new() -> StarRequest {
24        StarRequest {
25            path: None,
26            favorite_kind: None,
27        }
28    }
29}
30/// 
31#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
32pub enum FavoriteKind {
33    #[serde(rename = "flow")]
34    Flow,
35    #[serde(rename = "app")]
36    App,
37    #[serde(rename = "script")]
38    Script,
39    #[serde(rename = "raw_app")]
40    RawApp,
41}
42
43impl Default for FavoriteKind {
44    fn default() -> FavoriteKind {
45        Self::Flow
46    }
47}
48