Skip to main content

windmill_api/models/
edit_workspace_user.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.846.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 EditWorkspaceUser {
16    #[serde(rename = "is_admin", skip_serializing_if = "Option::is_none")]
17    pub is_admin: Option<bool>,
18    /// Legacy role selector, true for the `operator` role and false for `developer`.
19    #[serde(rename = "operator", skip_serializing_if = "Option::is_none")]
20    pub operator: Option<bool>,
21    /// The member's workspace role, one of the workspace's roles. Wins over `operator`.
22    #[serde(rename = "role", skip_serializing_if = "Option::is_none")]
23    pub role: Option<String>,
24    #[serde(rename = "disabled", skip_serializing_if = "Option::is_none")]
25    pub disabled: Option<bool>,
26}
27
28impl EditWorkspaceUser {
29    pub fn new() -> EditWorkspaceUser {
30        EditWorkspaceUser {
31            is_admin: None,
32            operator: None,
33            role: None,
34            disabled: None,
35        }
36    }
37}
38