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
/*
 * Ory APIs
 *
 * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. 
 *
 * The version of the OpenAPI document: v1.6.1
 * Contact: support@ory.sh
 * Generated by: https://openapi-generator.tech
 */




#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct WorkspaceMeta {
    #[serde(rename = "created_at")]
    pub created_at: String,
    #[serde(rename = "id")]
    pub id: String,
    #[serde(rename = "name")]
    pub name: String,
    #[serde(rename = "subscription_id", skip_serializing_if = "Option::is_none")]
    pub subscription_id: Option<String>,
    #[serde(rename = "subscription_plan", skip_serializing_if = "Option::is_none")]
    pub subscription_plan: Option<String>,
    #[serde(rename = "updated_at")]
    pub updated_at: String,
}


impl WorkspaceMeta {
    pub fn new(created_at: String, id: String, name: String, updated_at: String) -> WorkspaceMeta {
        WorkspaceMeta {
                created_at,
                id,
                name,
                subscription_id: None,
                subscription_plan: None,
                updated_at,
        }
    }
}