windmill_api/models/
create_workspace_fork.rs1use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct CreateWorkspaceFork {
16 #[serde(rename = "id")]
17 pub id: String,
18 #[serde(rename = "name")]
19 pub name: String,
20 #[serde(rename = "color", skip_serializing_if = "Option::is_none")]
21 pub color: Option<String>,
22}
23
24impl CreateWorkspaceFork {
25 pub fn new(id: String, name: String) -> CreateWorkspaceFork {
26 CreateWorkspaceFork {
27 id,
28 name,
29 color: None,
30 }
31 }
32}
33