use crate::models;
#[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";
}