printnanny_api_client/models/
workspace_request.rs

1/*
2 * printnanny-api-client
3 *
4 * Official API client library for printnanny.ai
5 *
6 * The version of the OpenAPI document: 0.135.1
7 * Contact: leigh@printnanny.ai
8 * Generated by: https://openapi-generator.tech
9 */
10
11
12
13
14#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
15pub struct WorkspaceRequest {
16    /// The name of the organization
17    #[serde(rename = "name")]
18    pub name: String,
19    #[serde(rename = "is_active", skip_serializing_if = "Option::is_none")]
20    pub is_active: Option<bool>,
21    /// The name in all lowercase, suitable for URL identification
22    #[serde(rename = "slug")]
23    pub slug: String,
24    #[serde(rename = "description")]
25    pub description: String,
26    #[serde(rename = "icon", skip_serializing_if = "Option::is_none")]
27    pub icon: Option<std::path::PathBuf>,
28}
29
30impl WorkspaceRequest {
31    pub fn new(name: String, slug: String, description: String) -> WorkspaceRequest {
32        WorkspaceRequest {
33            name,
34            is_active: None,
35            slug,
36            description,
37            icon: None,
38        }
39    }
40}
41
42