exoscale_rs/models/
dbaas_service_pg_connection_pools_inner.rs

1/*
2 * Exoscale Public API
3 *
4 *  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)
5 *
6 * The version of the OpenAPI document: 2.0.0
7 * Contact: api@exoscale.com
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct DbaasServicePgConnectionPoolsInner {
16    /// Connection URI for the DB pool
17    #[serde(rename = "connection-uri")]
18    pub connection_uri: String,
19    #[serde(rename = "database")]
20    pub database: String,
21    #[serde(rename = "mode")]
22    pub mode: models::EnumPgPoolMode,
23    #[serde(rename = "name")]
24    pub name: String,
25    #[serde(rename = "size")]
26    pub size: u64,
27    #[serde(rename = "username")]
28    pub username: String,
29}
30
31impl DbaasServicePgConnectionPoolsInner {
32    pub fn new(connection_uri: String, database: String, mode: models::EnumPgPoolMode, name: String, size: u64, username: String) -> DbaasServicePgConnectionPoolsInner {
33        DbaasServicePgConnectionPoolsInner {
34            connection_uri,
35            database,
36            mode,
37            name,
38            size,
39            username,
40        }
41    }
42}
43