use indexmap::IndexMap; use serde::{Deserialize, Serialize}; #[derive(Serialize, Deserialize, Debug, Clone, Default)] pub struct ZypperConfiguration { #[serde(serialize_with = "hcl::ser::labeled_block")] pub pkg: IndexMap, } #[derive(Serialize, Deserialize, Debug, Clone, Default)] pub struct Package { #[serde(skip_serializing, skip_deserializing)] pub name: String, #[serde(skip_serializing_if = "Option::is_none")] pub packages: Option>, #[serde(skip_serializing_if = "Option::is_none")] pub depends_on: Option>, #[serde(skip_serializing_if = "Option::is_none")] pub postinstall: Option, #[serde(skip_serializing_if = "Option::is_none")] pub version_check: Option, #[serde(skip_serializing_if = "Option::is_none")] pub non_interactive: Option, }