Skip to main content

akeyless_api/models/
kmip_config_part.rs

1/*
2 * Akeyless API
3 *
4 * The purpose of this application is to provide access to Akeyless API.
5 *
6 * The version of the OpenAPI document: 3.0
7 * Contact: support@akeyless.io
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 KmipConfigPart {
16    #[serde(rename = "clients", skip_serializing_if = "Option::is_none")]
17    pub clients: Option<std::collections::HashMap<String, models::KmipClient>>,
18    /// Saves the private key of the cert issuer in encypted form
19    #[serde(rename = "key_enc", skip_serializing_if = "Option::is_none")]
20    pub key_enc: Option<Vec<i32>>,
21    #[serde(rename = "server", skip_serializing_if = "Option::is_none")]
22    pub server: Option<Box<models::KmipServer>>,
23    /// Saved for backward compatibility TODO: remove this after all clients upgrade
24    #[serde(rename = "server_enc", skip_serializing_if = "Option::is_none")]
25    pub server_enc: Option<Vec<i32>>,
26}
27
28impl KmipConfigPart {
29    pub fn new() -> KmipConfigPart {
30        KmipConfigPart {
31            clients: None,
32            key_enc: None,
33            server: None,
34            server_enc: None,
35        }
36    }
37}
38