pub to_save: String,
pub placeholder: String,
+ #[yaserde(rename = "option")]
+ pub options: Vec<ZakFormElementSelectOption>,
+
#[yaserde(rename = "zak-cgi-options")]
pub zakcgi_options: Option<ZakFormElementRadioOptions>,
pub vtype: String,
}
+#[derive(Default, Debug, Clone, PartialEq, YaDeserialize)]
+#[yaserde(rename = "option")]
+pub struct ZakFormElementSelectOption {
+ pub id: String,
+ #[yaserde(text)]
+ pub text: String,
+}
+
#[derive(Default, Debug, Clone, PartialEq, YaDeserialize)]
#[yaserde(rename = "zak-cgi-options")]
pub struct ZakFormElementRadioOptions {