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
/*
 * Exoscale Public API
 *
 *  Infrastructure automation API, allowing programmatic access to all Exoscale products and services.  The [OpenAPI Specification](http://spec.openapis.org/oas/v3.0.3.html) source of this documentation can be obtained here:  * [JSON format](https://openapi-v2.exoscale.com/source.json) * [YAML format](https://openapi-v2.exoscale.com/source.yaml)
 *
 * The version of the OpenAPI document: 2.0.0
 * Contact: api@exoscale.com
 * Generated by: https://openapi-generator.tech
 */

#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct CreateDbaasPgDatabaseRequest {
    #[serde(rename = "database_name")]
    pub database_name: String,
    /// Default string sort order (LC_COLLATE) for PostgreSQL database
    #[serde(rename = "lc-collate", skip_serializing_if = "Option::is_none")]
    pub lc_collate: Option<String>,
    /// Default character classification (LC_CTYPE) for PostgreSQL database
    #[serde(rename = "lc-ctype", skip_serializing_if = "Option::is_none")]
    pub lc_ctype: Option<String>,
}

impl CreateDbaasPgDatabaseRequest {
    pub fn new(database_name: String) -> CreateDbaasPgDatabaseRequest {
        CreateDbaasPgDatabaseRequest {
            database_name,
            lc_collate: None,
            lc_ctype: None,
        }
    }
}