dtz_core/models/
encrypted_value.rs

1/*
2 * DTZ Core Api
3 *
4 * a generated client for the DTZ Core API
5 *
6 * Contact: jens@apimeister.com
7 * Generated by: https://openapi-generator.tech
8 */
9
10#[allow(unused_imports)]
11use crate::models;
12#[allow(unused_imports)]
13use serde::{Deserialize, Serialize};
14
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct EncryptedValue {
17    /// Encryption algorithm or key reference, e.g. 'AES256:KEY1'.
18    #[serde(rename = "encryptionKey", skip_serializing_if = "Option::is_none")]
19    pub encryption_key: Option<String>,
20    /// The base-64 encoded ciphertext.
21    #[serde(rename = "encryptedValue", skip_serializing_if = "Option::is_none")]
22    pub encrypted_value: Option<String>,
23}
24
25impl EncryptedValue {
26    pub fn new() -> EncryptedValue {
27        EncryptedValue {
28            encryption_key: None,
29            encrypted_value: None,
30        }
31    }
32}
33