tembo_api_client/models/
pg_bouncer.rs

1/*
2 * Tembo Cloud
3 *
4 * Platform API for Tembo Cloud             </br>             </br>             To find a Tembo Data API, please find it here:             </br>             </br>             [AWS US East 1](https://api.data-1.use1.tembo.io/swagger-ui/)
5 *
6 * The version of the OpenAPI document: v1.0.0
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// PgBouncer : PgBouncer is the type for the PGBouncer configuration
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct PgBouncer {
17    /// Valid pgbouncer parameter values can be found at [https://www.pgbouncer.org/config.html](https://www.pgbouncer.org/config.html)
18    #[serde(
19        rename = "parameters",
20        default,
21        with = "::serde_with::rust::double_option",
22        skip_serializing_if = "Option::is_none"
23    )]
24    pub parameters: Option<Option<std::collections::HashMap<String, String>>>,
25    #[serde(rename = "poolMode", skip_serializing_if = "Option::is_none")]
26    pub pool_mode: Option<models::PoolerPgbouncerPoolMode>,
27    #[serde(
28        rename = "resources",
29        default,
30        with = "::serde_with::rust::double_option",
31        skip_serializing_if = "Option::is_none"
32    )]
33    pub resources: Option<Option<Box<models::PoolerTemplateSpecContainersResources>>>,
34}
35
36impl PgBouncer {
37    /// PgBouncer is the type for the PGBouncer configuration
38    pub fn new() -> PgBouncer {
39        PgBouncer {
40            parameters: None,
41            pool_mode: None,
42            resources: None,
43        }
44    }
45}