1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
use strong_xml::{XmlRead, XmlWrite};
#[derive(Debug, Default, XmlRead, XmlWrite, Clone)]
#[cfg_attr(test, derive(PartialEq))]
#[xml(tag = "w:pgMar")]
pub struct PageMargin {
#[xml(attr = "w:top")]
pub top: Option<isize>,
#[xml(attr = "w:right")]
pub right: Option<isize>,
#[xml(attr = "w:bottom")]
pub bottom: Option<isize>,
#[xml(attr = "w:left")]
pub left: Option<isize>,
#[xml(attr = "w:header")]
pub header: Option<isize>,
#[xml(attr = "w:footer")]
pub footer: Option<isize>,
#[xml(attr = "w:gutter")]
pub gutter: Option<isize>,
}