redfish-codegen 0.3.1

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


/// Various settings for Google Authenticator multi-factor authentication.
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
#[derive(derivative::Derivative)]
#[derivative(Default)]
pub struct GoogleAuthenticator {
    /// An indication of whether multi-factor authentication with Google Authenticator is enabled.
    #[serde(rename = "Enabled")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub enabled: Option<bool>,
    /// The secret key to use when communicating with the Google Authenticator server.  This property is `null` in responses.
    #[serde(rename = "SecretKey")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub secret_key: Option<String>,
    /// Indicates if the SecretKey property is set.
    #[serde(rename = "SecretKeySet")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub secret_key_set: Option<bool>,
}

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