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;

/// Various settings for RSA SecurID multi-factor authentication.
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
#[derive(derivative::Derivative)]
#[derivative(Default)]
pub struct SecurID {
    #[serde(rename = "Certificates")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub certificates: Option<models::odata_v4::IdRef>,
    /// The client ID to use when communicating with the RSA SecurID server.
    #[serde(rename = "ClientId")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub client_id: Option<String>,
    /// The client secret to use when communicating with the RSA SecurID server.  This property is `null` in responses.
    #[serde(rename = "ClientSecret")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub client_secret: Option<String>,
    /// Indicates if the ClientSecret property is set.
    #[serde(rename = "ClientSecretSet")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub client_secret_set: Option<bool>,
    /// An indication of whether multi-factor authentication with RSA SecurID is enabled.
    #[serde(rename = "Enabled")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub enabled: Option<bool>,
    /// The URI of the RSA SecurID server.
    #[serde(rename = "ServerURI")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub server_uri: Option<String>,
}

impl crate::Metadata<'static> for SecurID {
    const JSON_SCHEMA: &'static str = "AccountService.v1_12_0.json";
}