windmill-api 1.896.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.896.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 BrowseAccessFolders200ResponseInner {
    #[serde(rename = "name")]
    pub name: String,
    /// the principal's entry in the folder's extra_perms; absent when none, false for read, true for write
    #[serde(rename = "grant", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub grant: Option<Option<bool>>,
    #[serde(rename = "target_owner")]
    pub target_owner: bool,
    /// why the caller cannot change this grant
    #[serde(rename = "blocked", skip_serializing_if = "Option::is_none")]
    pub blocked: Option<String>,
}

impl BrowseAccessFolders200ResponseInner {
    pub fn new(name: String, target_owner: bool) -> BrowseAccessFolders200ResponseInner {
        BrowseAccessFolders200ResponseInner {
            name,
            grant: None,
            target_owner,
            blocked: None,
        }
    }
}