Skip to main content

windmill_api/models/
acl_change_set_owner.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.817.0
7 * Contact: contact@windmill.dev
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// AclChangeSetOwner : hands the target to role — for a schema, with everything already in it but an extension's members, which stay with the extension
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct AclChangeSetOwner {
17    #[serde(rename = "type")]
18    pub r#type: Type,
19    /// a data table role of the instance, or admin
20    #[serde(rename = "role")]
21    pub role: String,
22}
23
24impl AclChangeSetOwner {
25    /// hands the target to role — for a schema, with everything already in it but an extension's members, which stay with the extension
26    pub fn new(r#type: Type, role: String) -> AclChangeSetOwner {
27        AclChangeSetOwner {
28            r#type,
29            role,
30        }
31    }
32}
33/// 
34#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
35pub enum Type {
36    #[serde(rename = "set_owner")]
37    SetOwner,
38}
39
40impl Default for Type {
41    fn default() -> Type {
42        Self::SetOwner
43    }
44}
45