ooxmlsdk 0.4.0

Open XML SDK for Rust
Documentation
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
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
//
// -----------------------------------------------------------------------------
//  THIS FILE WAS @generated AUTOMATICALLY. DO NOT MODIFY THIS FILE MANUALLY.
// -----------------------------------------------------------------------------
//

#[derive(Clone, Debug, Default, ooxmlsdk_derive::SdkEnum)]
pub enum CommentStatus {
  #[sdk(rename = "active")]
  #[default]
  Active,
  #[sdk(rename = "resolved")]
  Resolved,
  #[sdk(rename = "closed")]
  Closed,
}
/// Defines the CommentUnknownAnchor Class.
///
/// Available in Office2021 and above.
///
/// When the object is serialized out as xml, it's qualified name is p188:unknownAnchor.
#[derive(Clone, Debug, Default, ooxmlsdk_derive::SdkType)]
#[sdk(qname = "p188:CT_CommentUnknownAnchor/p188:unknownAnchor")]
pub struct CommentUnknownAnchor {}
/// Defines the TextBodyType Class.
///
/// Available in Office2021 and above.
///
/// When the object is serialized out as xml, it's qualified name is p188:txBody.
#[derive(Clone, Debug, Default, ooxmlsdk_derive::SdkType)]
#[sdk(qname = "a:CT_TextBody/p188:txBody")]
pub struct TextBodyType {
  ///Body Properties
  #[sdk(child(qname = "a:CT_TextBodyProperties/a:bodyPr"))]
  pub body_properties:
    std::boxed::Box<crate::schemas::schemas_openxmlformats_org_drawingml_2006_main::BodyProperties>,
  ///Text List Styles
  #[sdk(child(qname = "a:CT_TextListStyle/a:lstStyle"))]
  pub list_style: Option<
    std::boxed::Box<crate::schemas::schemas_openxmlformats_org_drawingml_2006_main::ListStyle>,
  >,
  /// _
  #[sdk(child(qname = "a:CT_TextParagraph/a:p"))]
  pub a_p: Vec<crate::schemas::schemas_openxmlformats_org_drawingml_2006_main::Paragraph>,
}
/// Defines the CommentPropertiesExtensionList Class.
///
/// Available in Office2021 and above.
///
/// When the object is serialized out as xml, it's qualified name is p188:extLst.
#[derive(Clone, Debug, Default, ooxmlsdk_derive::SdkType)]
#[sdk(qname = "p188:CT_CommentPropertiesExtensionList/p188:extLst")]
pub struct CommentPropertiesExtensionList {
  ///Data for the Windows platform..
  #[sdk(child(qname = "p188:CT_CommentPropertiesExtension/p:ext"))]
  pub comment_properties_extension: Vec<
    crate::schemas::schemas_openxmlformats_org_presentationml_2006_main::CommentPropertiesExtension,
  >,
}
/// Defines the AuthorList Class.
///
/// Available in Office2021 and above.
///
/// When the object is serialized out as xml, it's qualified name is p188:authorLst.
#[derive(Clone, Debug, Default, ooxmlsdk_derive::SdkType)]
#[sdk(qname = "p188:CT_AuthorList/p188:authorLst")]
pub struct AuthorList {
  pub xmlns: Option<String>,
  pub xmlns_map: std::collections::HashMap<String, String>,
  pub xml_header: crate::common::XmlHeaderType,
  pub mc_ignorable: Option<String>,
  /// _
  #[sdk(child(qname = "p188:CT_Author/p188:author"))]
  pub p188_author: Vec<Author>,
}
/// Defines the CommentList Class.
///
/// Available in Office2021 and above.
///
/// When the object is serialized out as xml, it's qualified name is p188:cmLst.
#[derive(Clone, Debug, Default, ooxmlsdk_derive::SdkType)]
#[sdk(qname = "p188:CT_CommentList/p188:cmLst")]
pub struct CommentList {
  pub xmlns: Option<String>,
  pub xmlns_map: std::collections::HashMap<String, String>,
  pub xml_header: crate::common::XmlHeaderType,
  pub mc_ignorable: Option<String>,
  /// _
  #[sdk(child(qname = "p188:CT_Comment/p188:cm"))]
  pub p188_cm: Vec<Comment>,
}
/// Defines the CommentRelationship Class.
///
/// Available in Office2021 and above.
///
/// When the object is serialized out as xml, it's qualified name is p188:commentRel.
#[derive(Clone, Debug, Default, ooxmlsdk_derive::SdkType)]
#[sdk(qname = "p188:CT_CommentRelationship/p188:commentRel")]
pub struct CommentRelationship {
  /// id
  ///
  /// Available in Office2021 and above.
  ///
  /// Represents the following attribute in the schema: r:id
  #[sdk(attr(qname = "r:id"))]
  pub r_id: crate::simple_type::StringValue,
}
/// Defines the ExtensionList Class.
///
/// Available in Office2021 and above.
///
/// When the object is serialized out as xml, it's qualified name is p188:extLst.
#[derive(Clone, Debug, Default, ooxmlsdk_derive::SdkType)]
#[sdk(qname = "p:CT_ExtensionList/p188:extLst")]
pub struct ExtensionList {
  ///Extension.
  #[sdk(child(qname = "p:CT_Extension/p:ext"))]
  pub extension:
    Vec<crate::schemas::schemas_openxmlformats_org_presentationml_2006_main::Extension>,
}
/// Defines the Author Class.
///
/// Available in Office2021 and above.
///
/// When the object is serialized out as xml, it's qualified name is p188:author.
#[derive(Clone, Debug, Default, ooxmlsdk_derive::SdkType)]
#[sdk(qname = "p188:CT_Author/p188:author")]
pub struct Author {
  /// id
  ///
  /// Available in Office2021 and above.
  ///
  /// Represents the following attribute in the schema: :id
  #[sdk(attr(qname = ":id"))]
  #[sdk(string_format(source = 1u32, kind = "token"))]
  pub id: crate::simple_type::StringValue,
  /// name
  ///
  /// Available in Office2021 and above.
  ///
  /// Represents the following attribute in the schema: :name
  #[sdk(attr(qname = ":name"))]
  pub name: crate::simple_type::StringValue,
  /// initials
  ///
  /// Available in Office2021 and above.
  ///
  /// Represents the following attribute in the schema: :initials
  #[sdk(attr(qname = ":initials"))]
  pub initials: Option<crate::simple_type::StringValue>,
  /// userId
  ///
  /// Available in Office2021 and above.
  ///
  /// Represents the following attribute in the schema: :userId
  #[sdk(attr(qname = ":userId"))]
  pub user_id: crate::simple_type::StringValue,
  /// providerId
  ///
  /// Available in Office2021 and above.
  ///
  /// Represents the following attribute in the schema: :providerId
  #[sdk(attr(qname = ":providerId"))]
  pub provider_id: crate::simple_type::StringValue,
  /// _
  #[sdk(child(qname = "p:CT_ExtensionList/p188:extLst"))]
  pub extension_list: Option<ExtensionList>,
}
/// Defines the CommentReply Class.
///
/// Available in Office2021 and above.
///
/// When the object is serialized out as xml, it's qualified name is p188:reply.
#[derive(Clone, Debug, Default, ooxmlsdk_derive::SdkType)]
#[sdk(qname = "p188:CT_CommentReply/p188:reply")]
pub struct CommentReply {
  /// id
  ///
  /// Available in Office2021 and above.
  ///
  /// Represents the following attribute in the schema: :id
  #[sdk(attr(qname = ":id"))]
  #[sdk(string_format(source = 1u32, kind = "token"))]
  pub id: crate::simple_type::StringValue,
  /// authorId
  ///
  /// Available in Office2021 and above.
  ///
  /// Represents the following attribute in the schema: :authorId
  #[sdk(attr(qname = ":authorId"))]
  #[sdk(string_format(source = 1u32, kind = "token"))]
  pub author_id: crate::simple_type::StringValue,
  /// status
  ///
  /// Available in Office2021 and above.
  ///
  /// Represents the following attribute in the schema: :status
  #[sdk(attr(qname = ":status"))]
  #[sdk(string_format(source = 0u32, kind = "token"))]
  pub status: Option<CommentStatus>,
  /// created
  ///
  /// Available in Office2021 and above.
  ///
  /// Represents the following attribute in the schema: :created
  #[sdk(attr(qname = ":created"))]
  pub created: crate::simple_type::DateTimeValue,
  /// tags
  ///
  /// Available in Office2021 and above.
  ///
  /// Represents the following attribute in the schema: :tags
  #[sdk(attr(qname = ":tags"))]
  pub tags: Option<String>,
  /// likes
  ///
  /// Available in Office2021 and above.
  ///
  /// Represents the following attribute in the schema: :likes
  #[sdk(attr(qname = ":likes"))]
  pub likes: Option<String>,
  ///Defines the TextBodyType Class.
  #[sdk(child(qname = "a:CT_TextBody/p188:txBody"))]
  pub text_body_type: Option<std::boxed::Box<TextBodyType>>,
  ///Defines the CommentPropertiesExtensionList Class.
  #[sdk(child(qname = "p188:CT_CommentPropertiesExtensionList/p188:extLst"))]
  pub comment_properties_extension_list: Option<CommentPropertiesExtensionList>,
}
/// Defines the Point2DType Class.
///
/// Available in Office2021 and above.
///
/// When the object is serialized out as xml, it's qualified name is p188:pos.
#[derive(Clone, Debug, Default, ooxmlsdk_derive::SdkType)]
#[sdk(qname = "a:CT_Point2D/p188:pos")]
pub struct Point2DType {
  /// X-Axis Coordinate
  ///
  /// Available in Office2007 and above.
  ///
  /// Represents the following attribute in the schema: :x
  #[sdk(attr(qname = ":x"))]
  #[sdk(number_range(
    source = 1u32,
    min = "-27273042329600",
    max = "27273042316900",
    min_inclusive = true,
    max_inclusive = true
  ))]
  pub x: crate::simple_type::Int64Value,
  /// Y-Axis Coordinate
  ///
  /// Available in Office2007 and above.
  ///
  /// Represents the following attribute in the schema: :y
  #[sdk(attr(qname = ":y"))]
  #[sdk(number_range(
    source = 1u32,
    min = "-27273042329600",
    max = "27273042316900",
    min_inclusive = true,
    max_inclusive = true
  ))]
  pub y: crate::simple_type::Int64Value,
}
/// Defines the CommentReplyList Class.
///
/// Available in Office2021 and above.
///
/// When the object is serialized out as xml, it's qualified name is p188:replyLst.
#[derive(Clone, Debug, Default, ooxmlsdk_derive::SdkType)]
#[sdk(qname = "p188:CT_CommentReplyList/p188:replyLst")]
pub struct CommentReplyList {
  /// _
  #[sdk(child(qname = "p188:CT_CommentReply/p188:reply"))]
  pub p188_reply: Vec<CommentReply>,
}
/// Defines the Comment Class.
///
/// Available in Office2021 and above.
///
/// When the object is serialized out as xml, it's qualified name is p188:cm.
#[derive(Clone, Debug, Default, ooxmlsdk_derive::SdkType)]
#[sdk(qname = "p188:CT_Comment/p188:cm")]
pub struct Comment {
  /// id
  ///
  /// Available in Office2021 and above.
  ///
  /// Represents the following attribute in the schema: :id
  #[sdk(attr(qname = ":id"))]
  #[sdk(string_format(source = 1u32, kind = "token"))]
  pub id: crate::simple_type::StringValue,
  /// authorId
  ///
  /// Available in Office2021 and above.
  ///
  /// Represents the following attribute in the schema: :authorId
  #[sdk(attr(qname = ":authorId"))]
  #[sdk(string_format(source = 1u32, kind = "token"))]
  pub author_id: crate::simple_type::StringValue,
  /// status
  ///
  /// Available in Office2021 and above.
  ///
  /// Represents the following attribute in the schema: :status
  #[sdk(attr(qname = ":status"))]
  #[sdk(string_format(source = 0u32, kind = "token"))]
  pub status: Option<CommentStatus>,
  /// created
  ///
  /// Available in Office2021 and above.
  ///
  /// Represents the following attribute in the schema: :created
  #[sdk(attr(qname = ":created"))]
  pub created: crate::simple_type::DateTimeValue,
  /// tags
  ///
  /// Available in Office2021 and above.
  ///
  /// Represents the following attribute in the schema: :tags
  #[sdk(attr(qname = ":tags"))]
  pub tags: Option<String>,
  /// likes
  ///
  /// Available in Office2021 and above.
  ///
  /// Represents the following attribute in the schema: :likes
  #[sdk(attr(qname = ":likes"))]
  pub likes: Option<String>,
  /// startDate
  ///
  /// Available in Office2021 and above.
  ///
  /// Represents the following attribute in the schema: :startDate
  #[sdk(attr(qname = ":startDate"))]
  pub start_date: Option<crate::simple_type::DateTimeValue>,
  /// dueDate
  ///
  /// Available in Office2021 and above.
  ///
  /// Represents the following attribute in the schema: :dueDate
  #[sdk(attr(qname = ":dueDate"))]
  pub due_date: Option<crate::simple_type::DateTimeValue>,
  /// assignedTo
  ///
  /// Available in Office2021 and above.
  ///
  /// Represents the following attribute in the schema: :assignedTo
  #[sdk(attr(qname = ":assignedTo"))]
  pub assigned_to: Option<String>,
  /// complete
  ///
  /// Available in Office2021 and above.
  ///
  /// Represents the following attribute in the schema: :complete
  #[sdk(attr(qname = ":complete"))]
  #[sdk(number_range(
    source = 0u32,
    min = "0",
    max = "100000",
    min_inclusive = true,
    max_inclusive = true
  ))]
  pub complete: Option<crate::simple_type::Int32Value>,
  /// priority
  ///
  /// Available in Office2021 and above.
  ///
  /// Represents the following attribute in the schema: :priority
  #[sdk(attr(qname = ":priority"))]
  #[sdk(number_range(
    source = 0u32,
    min = "0",
    max = "10",
    min_inclusive = true,
    max_inclusive = true
  ))]
  pub priority: Option<crate::simple_type::UInt32Value>,
  /// title
  ///
  /// Available in Office2021 and above.
  ///
  /// Represents the following attribute in the schema: :title
  #[sdk(attr(qname = ":title"))]
  pub title: Option<crate::simple_type::StringValue>,
  #[sdk(choice)]
  pub comment_choice: Option<CommentChoice>,
  /// _
  #[sdk(child(qname = "a:CT_Point2D/p188:pos"))]
  pub p188_pos: Option<Point2DType>,
  /// _
  #[sdk(child(qname = "p188:CT_CommentReplyList/p188:replyLst"))]
  pub p188_reply_lst: Option<CommentReplyList>,
  ///Defines the TextBodyType Class.
  #[sdk(child(qname = "a:CT_TextBody/p188:txBody"))]
  pub text_body_type: Option<std::boxed::Box<TextBodyType>>,
  ///Defines the CommentPropertiesExtensionList Class.
  #[sdk(child(qname = "p188:CT_CommentPropertiesExtensionList/p188:extLst"))]
  pub comment_properties_extension_list: Option<CommentPropertiesExtensionList>,
}
#[derive(Clone, Debug, ooxmlsdk_derive::SdkChoice)]
pub enum CommentChoice {
  #[sdk(child(qname = "pc:CT_SlideMonikerList/pc:sldMkLst"))]
    PcSldMkLst(
        std::boxed::Box<
            crate::schemas::schemas_microsoft_com_office_powerpoint_2013_main_command::SlideMonikerList,
        >,
    ),
    #[sdk(child(qname = "pc:CT_SlideLayoutMonikerList/pc:sldLayoutMkLst"))]
    PcSldLayoutMkLst(
        std::boxed::Box<
            crate::schemas::schemas_microsoft_com_office_powerpoint_2013_main_command::SlideLayoutMonikerList,
        >,
    ),
    #[sdk(child(qname = "pc:CT_MainMasterMonikerList/pc:sldMasterMkLst"))]
    PcSldMasterMkLst(
        std::boxed::Box<
            crate::schemas::schemas_microsoft_com_office_powerpoint_2013_main_command::MainMasterMonikerList,
        >,
    ),
    #[sdk(child(qname = "oac:CT_DrawingElementMonikerList/oac:deMkLst"))]
    OacDeMkLst(
        std::boxed::Box<
            crate::schemas::schemas_microsoft_com_office_drawing_2013_main_command::DeMkLstDrawingElementMonikerList,
        >,
    ),
    #[sdk(child(qname = "oac:CT_TextBodyMonikerList/oac:txBodyMkLst"))]
    OacTxBodyMkLst(
        std::boxed::Box<
            crate::schemas::schemas_microsoft_com_office_drawing_2013_main_command::TextBodyMonikerList,
        >,
    ),
    #[sdk(child(qname = "oac:CT_TextCharRangeMonikerList/oac:txMkLst"))]
    OacTxMkLst(
        std::boxed::Box<
            crate::schemas::schemas_microsoft_com_office_drawing_2013_main_command::TextCharRangeMonikerList,
        >,
    ),
    #[sdk(child(qname = "oac:CT_TableCellMonikerList/oac:tcMkLst"))]
    OacTcMkLst(
        std::boxed::Box<
            crate::schemas::schemas_microsoft_com_office_drawing_2013_main_command::TableCellMonikerList,
        >,
    ),
    #[sdk(child(qname = "oac:CT_TableRowMonikerList/oac:trMkLst"))]
    OacTrMkLst(
        std::boxed::Box<
            crate::schemas::schemas_microsoft_com_office_drawing_2013_main_command::TableRowMonikerList,
        >,
    ),
    #[sdk(child(qname = "oac:CT_TableColumnMonikerList/oac:gridColMkLst"))]
    OacGridColMkLst(
        std::boxed::Box<
            crate::schemas::schemas_microsoft_com_office_drawing_2013_main_command::TableColumnMonikerList,
        >,
    ),
    #[sdk(child(qname = "p188:CT_CommentUnknownAnchor/p188:unknownAnchor"))]
    P188UnknownAnchor(std::boxed::Box<CommentUnknownAnchor>),
}