Skip to main content

sheetkit_xml/
control.rs

1//! Worksheet form-control XML schema structures.
2
3use serde::{Deserialize, Serialize};
4
5/// Worksheet controls container.
6#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
7pub struct Controls {
8    #[serde(rename = "control", default)]
9    pub controls: Vec<Control>,
10}
11
12/// A worksheet control linked to a control-property part.
13#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
14pub struct Control {
15    #[serde(rename = "@shapeId")]
16    pub shape_id: u32,
17    #[serde(rename = "@r:id", alias = "@id")]
18    pub r_id: String,
19    #[serde(rename = "@name", skip_serializing_if = "Option::is_none")]
20    pub name: Option<String>,
21}