1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/*
* Windmill API
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.824.1
* 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 CustomInstanceDb {
#[serde(rename = "logs")]
pub logs: Box<models::CustomInstanceDbLogs>,
/// Whether the operation completed successfully
#[serde(rename = "success")]
pub success: bool,
/// Error message if the operation failed
#[serde(rename = "error", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
pub error: Option<Option<String>>,
#[serde(rename = "tag", skip_serializing_if = "Option::is_none")]
pub tag: Option<models::CustomInstanceDbTag>,
/// Workspaces that reference this database through a ducklake catalog or a datatable database of the kind being listed — 'instance' for the instance databases endpoint, 'external_instance' for the external cluster one. Computed at request time, not persisted, and only returned to superadmins.
#[serde(rename = "used_by_workspaces", skip_serializing_if = "Option::is_none")]
pub used_by_workspaces: Option<Vec<String>>,
/// The workspace a member created this database for as a fork copy. Only that workspace can import into it or point a fork at it.
#[serde(rename = "workspace_id", skip_serializing_if = "Option::is_none")]
pub workspace_id: Option<String>,
}
impl CustomInstanceDb {
pub fn new(logs: models::CustomInstanceDbLogs, success: bool) -> CustomInstanceDb {
CustomInstanceDb {
logs: Box::new(logs),
success,
error: None,
tag: None,
used_by_workspaces: None,
workspace_id: None,
}
}
}