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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
//
// -----------------------------------------------------------------------------
// THIS FILE WAS @generated AUTOMATICALLY. DO NOT MODIFY THIS FILE MANUALLY.
// -----------------------------------------------------------------------------
//
#[derive(Copy, Clone, Debug, Default, PartialEq, Eq, Hash, ooxmlsdk_derive::SdkEnum)]
pub enum XsiTypeValue {
#[sdk(rename = "dcterms:W3CDTF")]
#[default]
DctermsW3cdtf,
}
/// Core File Properties.
///
/// Available in Office2007 and above.
///
/// When the object is serialized out as xml, it's qualified name is cp:coreProperties.
#[derive(Clone, Debug, Default, PartialEq, ooxmlsdk_derive::SdkType)]
#[sdk(qname = "cp:CT_CoreProperties/cp:coreProperties")]
pub struct CoreProperties {
pub xmlns: Vec<crate::common::XmlNamespaceDecl>,
pub xml_header: crate::common::XmlHeaderType,
///cp:category
#[sdk(text_child(qname = "cp:CT_Category/cp:category"))]
pub category: Option<crate::simple_type::StringValue>,
///cp:contentStatus
#[sdk(text_child(qname = "cp:CT_ContentStatus/cp:contentStatus"))]
pub content_status: Option<crate::simple_type::StringValue>,
///dcterms:created
#[sdk(child(qname = "dcterms:CT_Created/dcterms:created"))]
pub created: Option<Created>,
///dc:creator
#[sdk(text_child(qname = "dc:CT_Creator/dc:creator"))]
pub creator: Option<crate::simple_type::StringValue>,
///dc:description
#[sdk(text_child(qname = "dc:CT_Description/dc:description"))]
pub description: Option<crate::simple_type::StringValue>,
///dc:identifier
#[sdk(text_child(qname = "dc:CT_Identifier/dc:identifier"))]
pub identifier: Option<crate::simple_type::StringValue>,
///cp:keywords
#[sdk(child(qname = "cp:CT_Keywords/cp:keywords"))]
pub keywords: Option<Keywords>,
///dc:language
#[sdk(text_child(qname = "dc:CT_Language/dc:language"))]
pub language: Option<crate::simple_type::StringValue>,
///cp:lastModifiedBy
#[sdk(text_child(qname = "cp:CT_LastModifiedBy/cp:lastModifiedBy"))]
pub last_modified_by: Option<crate::simple_type::StringValue>,
///cp:lastPrinted
#[sdk(text_child(qname = "cp:CT_LastPrinted/cp:lastPrinted"))]
pub last_printed: Option<crate::simple_type::StringValue>,
///dcterms:modified
#[sdk(child(qname = "dcterms:CT_Modified/dcterms:modified"))]
pub modified: Option<Modified>,
///cp:revision
#[sdk(text_child(qname = "cp:CT_Revision/cp:revision"))]
pub revision: Option<crate::simple_type::StringValue>,
///dc:subject
#[sdk(text_child(qname = "dc:CT_Subject/dc:subject"))]
pub subject: Option<crate::simple_type::StringValue>,
///dc:title
#[sdk(text_child(qname = "dc:CT_Title/dc:title"))]
pub title: Option<crate::simple_type::StringValue>,
///cp:version
#[sdk(text_child(qname = "cp:CT_Version/cp:version"))]
pub version: Option<crate::simple_type::StringValue>,
}
/// cp:category
///
/// Available in Office2007 and above.
///
/// When the object is serialized out as xml, it's qualified name is cp:category.
pub type Category = crate::simple_type::StringValue;
/// cp:contentStatus
///
/// Available in Office2007 and above.
///
/// When the object is serialized out as xml, it's qualified name is cp:contentStatus.
pub type ContentStatus = crate::simple_type::StringValue;
/// dcterms:created
///
/// Available in Office2007 and above.
///
/// When the object is serialized out as xml, it's qualified name is dcterms:created.
#[derive(Clone, Debug, Default, PartialEq, ooxmlsdk_derive::SdkType)]
#[sdk(qname = "dcterms:CT_Created/dcterms:created")]
pub struct Created {
/// type
///
/// Available in Office2007 and above.
///
/// Represents the following attribute in the schema: xsi:type
#[sdk(attr(qname = "xsi:type"))]
pub xsi_type: Option<XsiTypeValue>,
#[sdk(text)]
pub xml_content: Option<crate::simple_type::StringValue>,
}
/// dc:creator
///
/// Available in Office2007 and above.
///
/// When the object is serialized out as xml, it's qualified name is dc:creator.
pub type Creator = crate::simple_type::StringValue;
/// dc:description
///
/// Available in Office2007 and above.
///
/// When the object is serialized out as xml, it's qualified name is dc:description.
pub type Description = crate::simple_type::StringValue;
/// dc:identifier
///
/// Available in Office2007 and above.
///
/// When the object is serialized out as xml, it's qualified name is dc:identifier.
pub type Identifier = crate::simple_type::StringValue;
/// dc:language
///
/// Available in Office2007 and above.
///
/// When the object is serialized out as xml, it's qualified name is dc:language.
pub type Language = crate::simple_type::StringValue;
/// cp:lastModifiedBy
///
/// Available in Office2007 and above.
///
/// When the object is serialized out as xml, it's qualified name is cp:lastModifiedBy.
pub type LastModifiedBy = crate::simple_type::StringValue;
/// cp:lastPrinted
///
/// Available in Office2007 and above.
///
/// When the object is serialized out as xml, it's qualified name is cp:lastPrinted.
pub type LastPrinted = crate::simple_type::StringValue;
/// dcterms:modified
///
/// Available in Office2007 and above.
///
/// When the object is serialized out as xml, it's qualified name is dcterms:modified.
#[derive(Clone, Debug, Default, PartialEq, ooxmlsdk_derive::SdkType)]
#[sdk(qname = "dcterms:CT_Modified/dcterms:modified")]
pub struct Modified {
/// type
///
/// Available in Office2007 and above.
///
/// Represents the following attribute in the schema: xsi:type
#[sdk(attr(qname = "xsi:type"))]
pub xsi_type: Option<XsiTypeValue>,
#[sdk(text)]
pub xml_content: Option<crate::simple_type::StringValue>,
}
/// cp:revision
///
/// Available in Office2007 and above.
///
/// When the object is serialized out as xml, it's qualified name is cp:revision.
pub type Revision = crate::simple_type::StringValue;
/// dc:subject
///
/// Available in Office2007 and above.
///
/// When the object is serialized out as xml, it's qualified name is dc:subject.
pub type Subject = crate::simple_type::StringValue;
/// dc:title
///
/// Available in Office2007 and above.
///
/// When the object is serialized out as xml, it's qualified name is dc:title.
pub type Title = crate::simple_type::StringValue;
/// cp:version
///
/// Available in Office2007 and above.
///
/// When the object is serialized out as xml, it's qualified name is cp:version.
pub type Version = crate::simple_type::StringValue;
/// Keywords.
///
/// Available in Office2007 and above.
///
/// When the object is serialized out as xml, it's qualified name is cp:keywords.
#[derive(Clone, Debug, Default, PartialEq, ooxmlsdk_derive::SdkType)]
#[sdk(qname = "cp:CT_Keywords/cp:keywords")]
pub struct Keywords {
/// lang
///
/// Available in Office2007 and above.
///
/// Represents the following attribute in the schema: xml:lang
#[sdk(attr(qname = "xml:lang"))]
pub lang: Option<crate::simple_type::StringValue>,
#[sdk(text)]
pub xml_content: Option<crate::simple_type::StringValue>,
///cp:value
#[sdk(child(qname = "cp:CT_Keyword/cp:value"))]
pub value: Vec<Keyword>,
}
/// Keyword.
///
/// Available in Office2007 and above.
///
/// When the object is serialized out as xml, it's qualified name is cp:value.
#[derive(Clone, Debug, Default, PartialEq, ooxmlsdk_derive::SdkType)]
#[sdk(qname = "cp:CT_Keyword/cp:value")]
pub struct Keyword {
/// lang
///
/// Available in Office2007 and above.
///
/// Represents the following attribute in the schema: xml:lang
#[sdk(attr(qname = "xml:lang"))]
pub lang: Option<crate::simple_type::StringValue>,
#[sdk(text)]
pub xml_content: Option<crate::simple_type::StringValue>,
}