/*
 * Orvanta API
 *
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 1.2.0
 * Contact: contact@orvanta.cloud
 * Generated by: https://openapi-generator.tech
 */

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

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct StarRequest {
    #[serde(rename = "path", skip_serializing_if = "Option::is_none")]
    pub path: Option<String>,
    #[serde(rename = "favorite_kind", skip_serializing_if = "Option::is_none")]
    pub favorite_kind: Option<FavoriteKind>,
}

impl StarRequest {
    pub fn new() -> StarRequest {
        StarRequest {
            path: None,
            favorite_kind: None,
        }
    }
}
/// 
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum FavoriteKind {
    #[serde(rename = "flow")]
    Flow,
    #[serde(rename = "app")]
    App,
    #[serde(rename = "script")]
    Script,
    #[serde(rename = "raw_app")]
    RawApp,
    #[serde(rename = "asset")]
    Asset,
}

impl Default for FavoriteKind {
    fn default() -> FavoriteKind {
        Self::Flow
    }
}

