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;

/// Multi-factor authentication bypass settings.
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
#[serde(untagged)]
pub enum MFABypass {
    V1_12_1(models::account_service::v1_12_1::MFABypass),
    V1_13_0(models::account_service::v1_13_0::MFABypass),
}

#[allow(clippy::derivable_impls)]
impl Default for MFABypass {
     fn default() -> MFABypass {
        MFABypass::V1_12_1(models::account_service::v1_12_1::MFABypass::default())
     }
}

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