redfish-codegen 0.3.1

An unopinionated translation of the Redfish specification into Rust.
Documentation
// Generated by redfish-codegen. Do not modify.

use crate::models;

/// The KMIP server settings for a computer system.
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
#[derive(derivative::Derivative)]
#[derivative(Default)]
pub struct KMIPServer {
    /// The KMIP server address.
    #[serde(rename = "Address")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub address: Option<String>,
    /// The duration the system caches KMIP data.
    #[serde(rename = "CacheDuration")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub cache_duration: Option<String>,
    #[serde(rename = "CachePolicy")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub cache_policy: Option<models::computer_system::v1_20_1::KMIPCachePolicy>,
    /// The password to access the KMIP server.  The value is `null` in responses.
    #[serde(rename = "Password")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub password: Option<String>,
    /// The KMIP server port.
    #[serde(rename = "Port")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub port: Option<i64>,
    /// The username to access the KMIP server.
    #[serde(rename = "Username")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub username: Option<String>,
}

impl crate::Metadata<'static> for KMIPServer {
    const JSON_SCHEMA: &'static str = "ComputerSystem.v1_20_1.json";
}