tembo_api_client/models/action.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 serde::{Deserialize, Serialize};
12
13#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
14pub struct Action {
15 #[serde(rename = "description")]
16 pub description: String,
17 /// A valid Action ID. Available Action IDs include 'CreateInstance' and 'ManagePermissions'. Find all available Actions on the Actions API.
18 #[serde(rename = "id")]
19 pub id: String,
20 #[serde(rename = "name")]
21 pub name: String,
22}
23
24impl Action {
25 pub fn new(description: String, id: String, name: String) -> Action {
26 Action {
27 description,
28 id,
29 name,
30 }
31 }
32}