windmill_api/models/datatable_role_cluster.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.821.0
7 * Contact: contact@windmill.dev
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// DatatableRoleCluster : The Windmill-managed Postgres cluster a data table role is a login on: Windmill's own (behind `instance` data tables) or the external instance cluster (behind `external_instance` ones). Defaults to `instance`.
15/// The Windmill-managed Postgres cluster a data table role is a login on: Windmill's own (behind `instance` data tables) or the external instance cluster (behind `external_instance` ones). Defaults to `instance`.
16#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
17pub enum DatatableRoleCluster {
18 #[serde(rename = "instance")]
19 Instance,
20 #[serde(rename = "external_instance")]
21 ExternalInstance,
22
23}
24
25impl std::fmt::Display for DatatableRoleCluster {
26 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
27 match self {
28 Self::Instance => write!(f, "instance"),
29 Self::ExternalInstance => write!(f, "external_instance"),
30 }
31 }
32}
33
34impl Default for DatatableRoleCluster {
35 fn default() -> DatatableRoleCluster {
36 Self::Instance
37 }
38}
39