fastly_api/models/
secret.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 Secret {
13    /// A human-readable name for the secret. The value must contain only letters, numbers, dashes (`-`), underscores (`_`), and periods (`.`).
14    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
15    pub name: Option<String>,
16    /// A Base64-encoded string containing either the secret or the encrypted secret (when using client_key). The maximum secret size (before Base64 encoding and optional local encryption) is 64KB.
17    #[serde(rename = "secret", skip_serializing_if = "Option::is_none")]
18    pub secret: Option<String>,
19    /// The Base64-encoded string containing the client key used to encrypt the secret, if applicable.
20    #[serde(rename = "client_key", skip_serializing_if = "Option::is_none")]
21    pub client_key: Option<String>,
22}
23
24impl Secret {
25    pub fn new() -> Secret {
26        Secret {
27            name: None,
28            secret: None,
29            client_key: None,
30        }
31    }
32}
33
34