rusttwald/models/
de_period_mittwald_period_v1_period_database_period_my_sql_database.rs

1/*
2 * Mittwald API
3 *
4 * ## Introduction  This OpenAPI spec documents the mittwald API. It follows the [OpenAPI 3.0.0 specification](https://spec.openapis.org/oas/v3.0.0.html).  ## Authentication  You will need an API token to access the API. You can obtain one by logging into the [mStudio](https://studio.mittwald.de) and navigating to the [\"API Tokens\" section in the user menu](https://studio.mittwald.de/app/profile/api-tokens).  When making requests to the API, you can authenticate by passing your API token in the `X-Access-Token` header or as a bearer token.  ## Rate Limiting  Please note that usage of the API is rate-limited to prevent abuse. You can inspect the rate limiting for your current user by observing the `X-Ratelimit-*` headers included in each response.  ## mStudio  A main consumer of the mittwald API is the management interface for our customers, the [mStudio](https://studio.mittwald.de).  ## Contact and support  For support, please use the [mStudio support area](https://studio.mittwald.de/app/support/conversations) or drop us an email at [support@mittwald.de](mailto:support@mittwald.de).  For security issues, please report to [security@mittwald.de](mailto:security@mittwald.de). 
5 *
6 * The version of the OpenAPI document: 2.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 DePeriodMittwaldPeriodV1PeriodDatabasePeriodMySqlDatabase {
16    #[serde(rename = "characterSettings")]
17    pub character_settings: Box<models::DePeriodMittwaldPeriodV1PeriodDatabasePeriodCharacterSettings>,
18    #[serde(rename = "createdAt")]
19    pub created_at: String,
20    #[serde(rename = "description")]
21    pub description: String,
22    #[serde(rename = "finalizers", skip_serializing_if = "Option::is_none")]
23    pub finalizers: Option<Vec<String>>,
24    #[serde(rename = "hostname")]
25    pub hostname: String,
26    #[serde(rename = "id")]
27    pub id: uuid::Uuid,
28    #[serde(rename = "isReady")]
29    pub is_ready: bool,
30    #[serde(rename = "isShared")]
31    pub is_shared: bool,
32    #[serde(rename = "name")]
33    pub name: String,
34    #[serde(rename = "projectId")]
35    pub project_id: uuid::Uuid,
36    #[serde(rename = "status")]
37    pub status: models::DePeriodMittwaldPeriodV1PeriodDatabasePeriodDatabaseStatus,
38    #[serde(rename = "statusSetAt")]
39    pub status_set_at: String,
40    #[serde(rename = "storageUsageInBytes")]
41    pub storage_usage_in_bytes: i32,
42    #[serde(rename = "storageUsageInBytesSetAt")]
43    pub storage_usage_in_bytes_set_at: String,
44    #[serde(rename = "updatedAt")]
45    pub updated_at: String,
46    #[serde(rename = "version")]
47    pub version: String,
48}
49
50impl DePeriodMittwaldPeriodV1PeriodDatabasePeriodMySqlDatabase {
51    pub fn new(character_settings: models::DePeriodMittwaldPeriodV1PeriodDatabasePeriodCharacterSettings, created_at: String, description: String, hostname: String, id: uuid::Uuid, is_ready: bool, is_shared: bool, name: String, project_id: uuid::Uuid, status: models::DePeriodMittwaldPeriodV1PeriodDatabasePeriodDatabaseStatus, status_set_at: String, storage_usage_in_bytes: i32, storage_usage_in_bytes_set_at: String, updated_at: String, version: String) -> DePeriodMittwaldPeriodV1PeriodDatabasePeriodMySqlDatabase {
52        DePeriodMittwaldPeriodV1PeriodDatabasePeriodMySqlDatabase {
53            character_settings: Box::new(character_settings),
54            created_at,
55            description,
56            finalizers: None,
57            hostname,
58            id,
59            is_ready,
60            is_shared,
61            name,
62            project_id,
63            status,
64            status_set_at,
65            storage_usage_in_bytes,
66            storage_usage_in_bytes_set_at,
67            updated_at,
68            version,
69        }
70    }
71}
72