fastly_api/models/
tls_certificate_response_attributes.rs

1/*
2 * Fastly API
3 *
4 * Via the Fastly API you can perform any of the operations that are possible within the management console,  including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) 
5 *
6 */
7
8
9
10
11#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
12pub struct TlsCertificateResponseAttributes {
13    /// Date and time in ISO 8601 format.
14    #[serde(rename = "created_at", skip_serializing_if = "Option::is_none")]
15    pub created_at: Option<String>,
16    /// Date and time in ISO 8601 format.
17    #[serde(rename = "deleted_at", skip_serializing_if = "Option::is_none")]
18    pub deleted_at: Option<String>,
19    /// Date and time in ISO 8601 format.
20    #[serde(rename = "updated_at", skip_serializing_if = "Option::is_none")]
21    pub updated_at: Option<String>,
22    /// The hostname for which a certificate was issued.
23    #[serde(rename = "issued_to", skip_serializing_if = "Option::is_none")]
24    pub issued_to: Option<String>,
25    /// The certificate authority that issued the certificate.
26    #[serde(rename = "issuer", skip_serializing_if = "Option::is_none")]
27    pub issuer: Option<String>,
28    /// A value assigned by the issuer that is unique to a certificate.
29    #[serde(rename = "serial_number", skip_serializing_if = "Option::is_none")]
30    pub serial_number: Option<String>,
31    /// The algorithm used to sign the certificate.
32    #[serde(rename = "signature_algorithm", skip_serializing_if = "Option::is_none")]
33    pub signature_algorithm: Option<String>,
34    /// Time-stamp (GMT) when the certificate will expire. Must be in the future to be used to terminate TLS traffic.
35    #[serde(rename = "not_after", skip_serializing_if = "Option::is_none")]
36    pub not_after: Option<String>,
37    /// Time-stamp (GMT) when the certificate will become valid. Must be in the past to be used to terminate TLS traffic.
38    #[serde(rename = "not_before", skip_serializing_if = "Option::is_none")]
39    pub not_before: Option<String>,
40    /// A recommendation from Fastly indicating the key associated with this certificate is in need of rotation.
41    #[serde(rename = "replace", skip_serializing_if = "Option::is_none")]
42    pub replace: Option<bool>,
43}
44
45impl TlsCertificateResponseAttributes {
46    pub fn new() -> TlsCertificateResponseAttributes {
47        TlsCertificateResponseAttributes {
48            created_at: None,
49            deleted_at: None,
50            updated_at: None,
51            issued_to: None,
52            issuer: None,
53            serial_number: None,
54            signature_algorithm: None,
55            not_after: None,
56            not_before: None,
57            replace: None,
58        }
59    }
60}
61
62