Skip to main content

windmill_api/models/
acl_object.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#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct AclObject {
16    #[serde(rename = "name")]
17    pub name: String,
18    /// TABLE, SEQUENCE, FUNCTION, PROCEDURE or TYPE — what the object is. A revoke turns it into the keyword it takes, ROUTINE for both routine kinds; a type's grants are read only.
19    #[serde(rename = "kind")]
20    pub kind: String,
21    /// identity arguments of a routine, which is what tells two of the same name apart
22    #[serde(rename = "args", skip_serializing_if = "Option::is_none")]
23    pub args: Option<String>,
24}
25
26impl AclObject {
27    pub fn new(name: String, kind: String) -> AclObject {
28        AclObject {
29            name,
30            kind,
31            args: None,
32        }
33    }
34}
35