docx_rust/formatting/
page_cols.rs

1use hard_xml::{XmlRead, XmlWrite};
2
3/// Numbering Id
4///
5/// ```rust
6/// use docx_rust::formatting::*;
7///
8/// let id = NumberingId::from(42isize);
9/// ```
10#[derive(Debug, Default, XmlRead, XmlWrite, Clone)]
11#[cfg_attr(test, derive(PartialEq))]
12#[xml(tag = "w:cols")]
13pub struct PageCols {
14    #[xml(attr = "w:space")]
15    pub space: Option<isize>,
16}
17
18// impl<T: Into<isize>> From<T> for NumberingId {
19//     fn from(val: T) -> Self {
20//         NumberingId { value: val.into() }
21//     }
22// }
23
24// __xml_test_suites!(
25//     NumberingId,
26//     NumberingId::from(40isize),
27//     r#"<w:numId w:val="40"/>"#,
28// );