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 Microsoft Authenticator multi-factor authentication.
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
#[derive(derivative::Derivative)]
#[derivative(Default)]
pub struct MicrosoftAuthenticator {
    /// An indication of whether multi-factor authentication with Microsoft 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 Microsoft 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 MicrosoftAuthenticator {
    const JSON_SCHEMA: &'static str = "AccountService.v1_13_0.json";
}