redfish_codegen/models/capacity/
capacity_source.rs

1// Generated by redfish-codegen. Do not modify.
2
3use crate::models;
4
5/// A description of the type and source of storage.
6#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
7#[serde(untagged)]
8pub enum CapacitySource {
9    IdRef(models::odata_v4::IdRef),
10    V1_0_4(models::capacity::v1_0_4::CapacitySource),
11    V1_1_3(models::capacity::v1_1_3::CapacitySource),
12    V1_2_0(models::capacity::v1_2_0::CapacitySource),
13}
14
15#[allow(clippy::derivable_impls)]
16impl Default for CapacitySource {
17     fn default() -> CapacitySource {
18        CapacitySource::IdRef(models::odata_v4::IdRef::default())
19     }
20}
21
22impl crate::Metadata<'static> for CapacitySource {
23    const JSON_SCHEMA: &'static str = "Capacity.json";
24}