hcloud/models/
certificate_status_error.rs

1/*
2 * Hetzner Cloud API
3 *
4 * Copied from the official API documentation for the Public Hetzner Cloud.
5 *
6 * The version of the OpenAPI document: 0.28.0
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// CertificateStatusError : If issuance or renewal reports `failed`, this property contains information about what happened.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct CertificateStatusError {
17    #[serde(rename = "code", skip_serializing_if = "Option::is_none")]
18    pub code: Option<String>,
19    #[serde(rename = "message", skip_serializing_if = "Option::is_none")]
20    pub message: Option<String>,
21}
22
23impl CertificateStatusError {
24    /// If issuance or renewal reports `failed`, this property contains information about what happened.
25    pub fn new() -> CertificateStatusError {
26        CertificateStatusError {
27            code: None,
28            message: None,
29        }
30    }
31}