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;

/// A description of the type and source of storage.
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
#[serde(untagged)]
pub enum CapacitySource {
    IdRef(models::odata_v4::IdRef),
    V1_0_4(models::capacity::v1_0_4::CapacitySource),
    V1_1_3(models::capacity::v1_1_3::CapacitySource),
    V1_2_0(models::capacity::v1_2_0::CapacitySource),
}

#[allow(clippy::derivable_impls)]
impl Default for CapacitySource {
     fn default() -> CapacitySource {
        CapacitySource::IdRef(models::odata_v4::IdRef::default())
     }
}

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