tembo_api_client/models/
extension_status.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#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct ExtensionStatus {
16    #[serde(
17        rename = "description",
18        default,
19        with = "::serde_with::rust::double_option",
20        skip_serializing_if = "Option::is_none"
21    )]
22    pub description: Option<Option<String>>,
23    #[serde(rename = "locations")]
24    pub locations: Vec<models::ExtensionInstallLocationStatus>,
25    #[serde(rename = "name")]
26    pub name: String,
27}
28
29impl ExtensionStatus {
30    pub fn new(
31        locations: Vec<models::ExtensionInstallLocationStatus>,
32        name: String,
33    ) -> ExtensionStatus {
34        ExtensionStatus {
35            description: None,
36            locations,
37            name,
38        }
39    }
40}