windmill-api 1.682.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.682.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 ScopeDefinition {
    #[serde(rename = "value")]
    pub value: String,
    #[serde(rename = "label")]
    pub label: String,
    #[serde(rename = "description", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub description: Option<Option<String>>,
    #[serde(rename = "requires_resource_path")]
    pub requires_resource_path: bool,
}

impl ScopeDefinition {
    pub fn new(value: String, label: String, requires_resource_path: bool) -> ScopeDefinition {
        ScopeDefinition {
            value,
            label,
            description: None,
            requires_resource_path,
        }
    }
}