xsd-parser 1.5.2

Rust code generator for XML schema files
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
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
pub mod annotations {
    pub type Annotations = AnnotationsXElementType;
    #[derive(Debug)]
    pub struct AnnotationsXElementType {
        pub page: Vec<AnnotationsPageXElementType>,
    }
    #[derive(Debug)]
    pub struct AnnotationsPageXElementType {
        pub page_id: u32,
        pub file_loc: String,
    }
}
pub mod annotion {
    pub type PageAnnot = PageAnnotXElementType;
    #[derive(Debug)]
    pub struct PageAnnotXElementType {
        pub annot: Vec<PageAnnotAnnotXElementType>,
    }
    #[derive(Debug)]
    pub struct PageAnnotAnnotXElementType {
        pub id: u32,
        pub type_: PageAnnotAnnotTypeXType,
        pub creator: String,
        pub last_mod_date: String,
        pub visible: bool,
        pub subtype: Option<String>,
        pub print: bool,
        pub no_zoom: bool,
        pub no_rotate: bool,
        pub read_only: bool,
        pub remark: Option<String>,
        pub parameters: Option<PageAnnotAnnotParametersXElementType>,
        pub appearance: PageAnnotAnnotAppearanceXElementType,
    }
    #[derive(Debug)]
    pub enum PageAnnotAnnotTypeXType {
        Link,
        Path,
        Highlight,
        Stamp,
        Watermark,
    }
    #[derive(Debug)]
    pub struct PageAnnotAnnotParametersXElementType {
        pub parameter: Vec<PageAnnotAnnotParametersParameterXElementType>,
    }
    #[derive(Debug)]
    pub struct PageAnnotAnnotAppearanceXElementType {
        pub boundary: Option<String>,
        pub content: Vec<PageAnnotAnnotAppearanceXElementTypeContent>,
    }
    #[derive(Debug)]
    pub enum PageAnnotAnnotAppearanceXElementTypeContent {
        TextObject(super::page::CtPageBlockTextObjectXElementType),
        PathObject(super::page::CtPageBlockPathObjectXElementType),
        ImageObject(super::page::CtPageBlockImageObjectXElementType),
        CompositeObject(super::page::CtPageBlockCompositeObjectXElementType),
        PageBlock(super::page::CtPageBlockPageBlockXElementType),
    }
    #[derive(Debug)]
    pub struct PageAnnotAnnotParametersParameterXElementType {
        pub name: String,
        pub content: String,
    }
}
pub mod attachments {
    pub type Attachments = AttachmentsXElementType;
    #[derive(Debug)]
    pub struct AttachmentsXElementType {
        pub attachment: Vec<CtAttachmentXType>,
    }
    #[derive(Debug)]
    pub struct CtAttachmentXType {
        pub id: String,
        pub name: String,
        pub format: Option<String>,
        pub creation_date: Option<String>,
        pub mod_date: Option<String>,
        pub size: Option<f64>,
        pub visible: bool,
        pub usage: String,
        pub file_loc: String,
    }
}
pub mod custom_tags {
    pub type CustomTags = CustomTagsXElementType;
    #[derive(Debug)]
    pub struct CustomTagsXElementType {
        pub custom_tag: Vec<CustomTagsCustomTagXElementType>,
    }
    #[derive(Debug)]
    pub struct CustomTagsCustomTagXElementType {
        pub name_space: String,
        pub schema_loc: Option<String>,
        pub file_loc: String,
    }
}
pub mod definition {
    use xsd_parser_types::xml::AnyElement;
    #[derive(Debug)]
    pub struct CtActionXType {
        pub event: CtActionEventXType,
        pub content: Vec<CtActionXTypeContent>,
    }
    #[derive(Debug)]
    pub enum CtActionXTypeContent {
        Region(CtRegionXType),
        Goto(CtActionGotoXElementType),
        Uri(CtActionUriXElementType),
        GotoA(CtActionGotoAxElementType),
        Sound(CtActionSoundXElementType),
        Movie(CtActionMovieXElementType),
    }
    #[derive(Debug)]
    pub struct CtDestXType {
        pub type_: CtDestTypeXType,
        pub page_id: u32,
        pub left: Option<f64>,
        pub top: Option<f64>,
        pub right: Option<f64>,
        pub bottom: Option<f64>,
        pub zoom: Option<f64>,
    }
    #[derive(Debug)]
    pub struct CtPageAreaXType {
        pub physical_box: String,
        pub application_box: Option<String>,
        pub content_box: Option<String>,
        pub bleed_box: Option<String>,
    }
    #[derive(Debug)]
    pub struct CtRegionXType {
        pub area: Vec<CtRegionAreaXElementType>,
    }
    pub type StArrayXType = String;
    pub type StBoxXType = String;
    pub type StIdXType = u32;
    pub type StLocXType = String;
    pub type StPosXType = String;
    pub type StRefIdXType = u32;
    #[derive(Debug)]
    pub enum CtActionEventXType {
        Do,
        Po,
        Click,
    }
    #[derive(Debug)]
    pub enum CtActionGotoXElementType {
        Dest(CtDestXType),
        Bookmark(CtActionGotoBookmarkXElementType),
    }
    #[derive(Debug)]
    pub struct CtActionUriXElementType {
        pub uri: String,
        pub base: Option<String>,
        pub target: Option<String>,
    }
    #[derive(Debug)]
    pub struct CtActionGotoAxElementType {
        pub attach_id: String,
        pub new_window: bool,
    }
    #[derive(Debug)]
    pub struct CtActionSoundXElementType {
        pub resource_id: u32,
        pub volume: Option<i32>,
        pub repeat: Option<bool>,
        pub synchronous: Option<bool>,
    }
    #[derive(Debug)]
    pub struct CtActionMovieXElementType {
        pub resource_id: u32,
        pub operator: CtActionMovieOperatorXType,
    }
    #[derive(Debug)]
    pub enum CtDestTypeXType {
        Xyz,
        Fit,
        FitH,
        FitV,
        FitR,
    }
    #[derive(Debug)]
    pub struct CtRegionAreaXElementType {
        pub start: String,
        pub content: Vec<CtRegionAreaXElementTypeContent>,
    }
    #[derive(Debug)]
    pub enum CtRegionAreaXElementTypeContent {
        Move(CtRegionAreaLineXElementType),
        Line(CtRegionAreaLineXElementType),
        OuadraticBezier(CtRegionAreaOuadraticBezierXElementType),
        CubicBezier(CtRegionAreaCubicBezierXElementType),
        Arc(CtRegionAreaArcXElementType),
        Close(AnyElement),
    }
    #[derive(Debug)]
    pub struct CtActionGotoBookmarkXElementType {
        pub name: String,
    }
    #[derive(Debug)]
    pub enum CtActionMovieOperatorXType {
        Play,
        Stop,
        Pause,
        Resume,
    }
    #[derive(Debug)]
    pub struct CtRegionAreaLineXElementType {
        pub point_1: String,
    }
    #[derive(Debug)]
    pub struct CtRegionAreaOuadraticBezierXElementType {
        pub pointl: String,
        pub point_2: String,
    }
    #[derive(Debug)]
    pub struct CtRegionAreaCubicBezierXElementType {
        pub point_1: Option<String>,
        pub point_2: Option<String>,
        pub point_3: String,
    }
    #[derive(Debug)]
    pub struct CtRegionAreaArcXElementType {
        pub sweep_direction: bool,
        pub large_arc: bool,
        pub rotation_anglet: f64,
        pub ellipse_size: String,
        pub end_point: String,
    }
}
pub mod document {
    #[derive(Debug)]
    pub struct CtBookmarkXType {
        pub name: String,
        pub dest: super::definition::CtDestXType,
    }
    #[derive(Debug)]
    pub struct CtOutlineElemXType {
        pub title: String,
        pub count: Option<i32>,
        pub expanded: bool,
        pub actions: Option<super::page::CtGraphicUnitActionsXElementType>,
        pub outline_elem: Vec<CtOutlineElemXType>,
    }
    #[derive(Debug)]
    pub struct CtPermissionXType {
        pub edit: Option<bool>,
        pub annot: Option<bool>,
        pub export: Option<bool>,
        pub signature: Option<bool>,
        pub watermark: Option<bool>,
        pub print_screen: Option<bool>,
        pub print: Option<CtPermissionPrintXElementType>,
        pub valid_period: Option<CtPermissionValidPeriodXElementType>,
    }
    #[derive(Debug)]
    pub struct CtVPreferencesXType {
        pub content: Vec<CtVPreferencesXTypeContent>,
    }
    #[derive(Debug)]
    pub enum CtVPreferencesXTypeContent {
        PageMode(CtVPreferencesPageModeXElementType),
        PageLayout(CtVPreferencesPageLayoutXElementType),
        TabDisplay(CtVPreferencesTabDisplayXElementType),
        HideToolbar(bool),
        HideMenubar(bool),
        HideWindowUi(bool),
        ZoomMode(CtVPreferencesZoomModeXElementType),
        Zoom(f64),
    }
    pub type Document = DocumentXElementType;
    #[derive(Debug)]
    pub struct DocumentXElementType {
        pub common_data: DocumentCommonDataXElementType,
        pub pages: DocumentPagesXElementType,
        pub outlines: Option<DocumentOutlinesXElementType>,
        pub permissions: Option<CtPermissionXType>,
        pub actions: Option<super::page::CtGraphicUnitActionsXElementType>,
        pub v_preferences: Option<CtVPreferencesXType>,
        pub bookmarks: Option<DocumentBookmarksXElementType>,
        pub annotations: Option<String>,
        pub custom_tags: Option<String>,
        pub attachments: Option<String>,
        pub extensions: Option<String>,
    }
    #[derive(Debug)]
    pub struct CtPermissionPrintXElementType {
        pub printable: bool,
        pub copies: i32,
    }
    #[derive(Debug)]
    pub struct CtPermissionValidPeriodXElementType {
        pub start_date: Option<String>,
        pub end_date: Option<String>,
    }
    #[derive(Debug)]
    pub enum CtVPreferencesPageModeXElementType {
        None,
        FullScreen,
        UseOutlines,
        UseThumbs,
        UseCustomTags,
        UseLayers,
        UseAttatchs,
        UseBookmarks,
    }
    #[derive(Debug)]
    pub enum CtVPreferencesPageLayoutXElementType {
        OnePage,
        OneColumn,
        TwoPageL,
        TwoColumnL,
        TwoPageR,
        TwoColumnR,
    }
    #[derive(Debug)]
    pub enum CtVPreferencesTabDisplayXElementType {
        DocTitle,
        FileName,
    }
    #[derive(Debug)]
    pub enum CtVPreferencesZoomModeXElementType {
        Default,
        FitHeight,
        FitWidth,
        FitRect,
    }
    #[derive(Debug)]
    pub struct DocumentCommonDataXElementType {
        pub max_unit_id: u32,
        pub page_area: super::definition::CtPageAreaXType,
        pub public_res: Vec<String>,
        pub document_res: Vec<String>,
        pub template_page: Vec<DocumentCommonDataTemplatePageXElementType>,
        pub default_cs: Option<u32>,
    }
    #[derive(Debug)]
    pub struct DocumentPagesXElementType {
        pub page: Vec<DocumentPagesPageXElementType>,
    }
    #[derive(Debug)]
    pub struct DocumentOutlinesXElementType {
        pub outline_elem: Vec<CtOutlineElemXType>,
    }
    #[derive(Debug)]
    pub struct DocumentBookmarksXElementType {
        pub bookmark: Vec<CtBookmarkXType>,
    }
    #[derive(Debug)]
    pub struct DocumentCommonDataTemplatePageXElementType {
        pub id: String,
        pub name: Option<String>,
        pub z_order: Option<DocumentCommonDataTemplatePageZOrderXType>,
        pub base_loc: String,
    }
    #[derive(Debug)]
    pub struct DocumentPagesPageXElementType {
        pub id: u32,
        pub base_loc: String,
    }
    #[derive(Debug)]
    pub enum DocumentCommonDataTemplatePageZOrderXType {
        Background,
        Foreground,
    }
}
pub mod extensions {
    use xsd_parser_types::xml::AnyElement;
    #[derive(Debug)]
    pub struct CtExtensionXType {
        pub app_name: String,
        pub company: Option<String>,
        pub app_version: Option<String>,
        pub date: Option<String>,
        pub ref_id: u32,
        pub content: Vec<CtExtensionXTypeContent>,
    }
    #[derive(Debug)]
    pub enum CtExtensionXTypeContent {
        Property(CtExtensionPropertyXElementType),
        Data(AnyElement),
        ExtendData(String),
    }
    pub type Extensions = ExtensionsXElementType;
    #[derive(Debug)]
    pub struct ExtensionsXElementType {
        pub extension: Vec<CtExtensionXType>,
    }
    #[derive(Debug)]
    pub struct CtExtensionPropertyXElementType {
        pub name: String,
        pub type_: Option<String>,
        pub content: String,
    }
}
pub mod ofd {
    #[derive(Debug)]
    pub struct CtDocInfoXType {
        pub doc_id: String,
        pub title: Option<String>,
        pub author: Option<String>,
        pub subject: Option<String>,
        pub abstract_: Option<String>,
        pub creation_date: Option<String>,
        pub mod_date: Option<String>,
        pub doc_usage: Option<String>,
        pub cover: Option<String>,
        pub keywords: Option<CtDocInfoKeywordsXElementType>,
        pub creator: Option<String>,
        pub creator_version: Option<String>,
        pub custom_datas: Option<CtDocInfoCustomDatasXElementType>,
    }
    pub type Ofd = OfdXElementType;
    #[derive(Debug)]
    pub struct OfdXElementType {
        pub version: String,
        pub doc_type: OfdDocTypeXType,
        pub doc_body: Vec<OfdDocBodyXElementType>,
    }
    #[derive(Debug)]
    pub struct CtDocInfoKeywordsXElementType {
        pub keyword: Vec<String>,
    }
    #[derive(Debug)]
    pub struct CtDocInfoCustomDatasXElementType {
        pub custom_data: Vec<super::annotion::PageAnnotAnnotParametersParameterXElementType>,
    }
    #[derive(Debug)]
    pub enum OfdDocTypeXType {
        Ofd,
    }
    #[derive(Debug)]
    pub struct OfdDocBodyXElementType {
        pub doc_info: CtDocInfoXType,
        pub doc_root: String,
        pub versions: Option<OfdDocBodyVersionsXElementType>,
        pub signatures: Option<String>,
    }
    #[derive(Debug)]
    pub struct OfdDocBodyVersionsXElementType {
        pub version: Vec<OfdDocBodyVersionsVersionXElementType>,
    }
    #[derive(Debug)]
    pub struct OfdDocBodyVersionsVersionXElementType {
        pub id: String,
        pub index: i32,
        pub current: bool,
        pub base_loc: String,
    }
}
pub mod page {
    #[derive(Debug)]
    pub struct CtAxialShdXType {
        pub map_type: CtAxialShdMapTypeXType,
        pub map_unit: Option<f64>,
        pub extend: CtAxialShdExtendXType,
        pub start_point: String,
        pub end_point: String,
        pub segment: Vec<CtAxialShdSegmentXElementType>,
    }
    #[derive(Debug)]
    pub struct CtCgTransformXType {
        pub code_position: i32,
        pub code_count: i32,
        pub glyph_count: i32,
        pub glyphs: Option<String>,
    }
    #[derive(Debug)]
    pub struct CtClipXType {
        pub area: Vec<CtClipAreaXElementType>,
    }
    #[derive(Debug)]
    pub struct CtColorXType {
        pub value: Option<String>,
        pub index: Option<i32>,
        pub color_space: Option<u32>,
        pub alpha: i32,
        pub content: Option<CtColorXTypeContent>,
    }
    #[derive(Debug)]
    pub enum CtColorXTypeContent {
        Pattern(CtPatternXType),
        AxialShd(CtAxialShdXType),
        RadialShd(CtRadialShdXType),
        GouraudShd(CtGouraudShdXType),
        LaGourandShd(CtLaGouraudShdXType),
    }
    #[derive(Debug)]
    pub struct CtCompositeXType {
        pub boundary: String,
        pub name: Option<String>,
        pub visible: bool,
        pub ctm: Option<String>,
        pub draw_param: Option<u32>,
        pub line_width: f64,
        pub cap: CtGraphicUnitCapXType,
        pub join: CtGraphicUnitJoinXType,
        pub miter_limit: f64,
        pub dash_offset: f64,
        pub dash_pattern: Option<String>,
        pub alpha: i32,
        pub resource_id: u32,
        pub actions: Option<CtGraphicUnitActionsXElementType>,
        pub clips: Option<CtGraphicUnitClipsXElementType>,
    }
    #[derive(Debug)]
    pub struct CtGouraudShdXType {
        pub extend: Option<i32>,
        pub point: Vec<CtGouraudShdPointXElementType>,
        pub back_color: Option<Box<CtColorXType>>,
    }
    #[derive(Debug)]
    pub struct CtGraphicUnitXType {
        pub boundary: String,
        pub name: Option<String>,
        pub visible: bool,
        pub ctm: Option<String>,
        pub draw_param: Option<u32>,
        pub line_width: f64,
        pub cap: CtGraphicUnitCapXType,
        pub join: CtGraphicUnitJoinXType,
        pub miter_limit: f64,
        pub dash_offset: f64,
        pub dash_pattern: Option<String>,
        pub alpha: i32,
        pub actions: Option<CtGraphicUnitActionsXElementType>,
        pub clips: Option<CtGraphicUnitClipsXElementType>,
    }
    #[derive(Debug)]
    pub struct CtImageXType {
        pub boundary: String,
        pub name: Option<String>,
        pub visible: bool,
        pub ctm: Option<String>,
        pub draw_param: Option<u32>,
        pub line_width: f64,
        pub cap: CtGraphicUnitCapXType,
        pub join: CtGraphicUnitJoinXType,
        pub miter_limit: f64,
        pub dash_offset: f64,
        pub dash_pattern: Option<String>,
        pub alpha: i32,
        pub resource_id: u32,
        pub substitution: Option<u32>,
        pub image_mask: Option<u32>,
        pub actions: Option<CtGraphicUnitActionsXElementType>,
        pub clips: Option<CtGraphicUnitClipsXElementType>,
        pub border: Option<CtImageBorderXElementType>,
    }
    #[derive(Debug)]
    pub struct CtLaGouraudShdXType {
        pub vertices_per_row: i32,
        pub extend: Option<i32>,
        pub point: Vec<CtLaGouraudShdPointXElementType>,
        pub back_color: Option<Box<CtColorXType>>,
    }
    #[derive(Debug)]
    pub struct CtLayerXType {
        pub type_: CtLayerTypeXType,
        pub draw_param: Option<u32>,
        pub content: Vec<CtLayerXTypeContent>,
    }
    #[derive(Debug)]
    pub enum CtLayerXTypeContent {
        TextObject(CtPageBlockTextObjectXElementType),
        PathObject(CtPageBlockPathObjectXElementType),
        ImageObject(CtPageBlockImageObjectXElementType),
        CompositeObject(CtPageBlockCompositeObjectXElementType),
        PageBlock(CtPageBlockPageBlockXElementType),
    }
    #[derive(Debug)]
    pub struct CtPageBlockXType {
        pub content: Vec<CtPageBlockXTypeContent>,
    }
    #[derive(Debug)]
    pub enum CtPageBlockXTypeContent {
        TextObject(CtPageBlockTextObjectXElementType),
        PathObject(CtPageBlockPathObjectXElementType),
        ImageObject(CtPageBlockImageObjectXElementType),
        CompositeObject(CtPageBlockCompositeObjectXElementType),
        PageBlock(CtPageBlockPageBlockXElementType),
    }
    #[derive(Debug)]
    pub struct CtPathXType {
        pub boundary: String,
        pub name: Option<String>,
        pub visible: bool,
        pub ctm: Option<String>,
        pub draw_param: Option<u32>,
        pub line_width: f64,
        pub cap: CtGraphicUnitCapXType,
        pub join: CtGraphicUnitJoinXType,
        pub miter_limit: f64,
        pub dash_offset: f64,
        pub dash_pattern: Option<String>,
        pub alpha: i32,
        pub stroke: bool,
        pub fill: bool,
        pub rule: CtPathRuleXType,
        pub actions: Option<CtGraphicUnitActionsXElementType>,
        pub clips: Option<CtGraphicUnitClipsXElementType>,
        pub stroke_color: Option<CtColorXType>,
        pub fill_color: Option<CtColorXType>,
        pub abbreviated_data: String,
    }
    #[derive(Debug)]
    pub struct CtPatternXType {
        pub width: f64,
        pub height: f64,
        pub x_step: Option<f64>,
        pub y_step: Option<f64>,
        pub reflect_method: CtPatternReflectMethodXType,
        pub relative_to: CtPatternRelativeToXType,
        pub ctm: Option<String>,
        pub cell_content: CtPatternCellContentXElementType,
    }
    #[derive(Debug)]
    pub struct CtRadialShdXType {
        pub map_type: CtAxialShdMapTypeXType,
        pub map_unit: Option<f64>,
        pub eccentricity: f64,
        pub angle: f64,
        pub start_point: String,
        pub start_radius: f64,
        pub end_point: String,
        pub end_radius: f64,
        pub extend: i32,
        pub seqment: Vec<CtAxialShdSegmentXElementType>,
    }
    #[derive(Debug)]
    pub struct CtTextXType {
        pub boundary: String,
        pub name: Option<String>,
        pub visible: bool,
        pub ctm: Option<String>,
        pub draw_param: Option<u32>,
        pub line_width: f64,
        pub cap: CtGraphicUnitCapXType,
        pub join: CtGraphicUnitJoinXType,
        pub miter_limit: f64,
        pub dash_offset: f64,
        pub dash_pattern: Option<String>,
        pub alpha: i32,
        pub font: u32,
        pub size: f64,
        pub stroke: bool,
        pub fill: bool,
        pub h_scale: f64,
        pub read_direction: i32,
        pub char_direction: i32,
        pub weight: CtTextWeightXType,
        pub italic: bool,
        pub content: Vec<CtTextXTypeContent>,
    }
    #[derive(Debug)]
    pub enum CtTextXTypeContent {
        Actions(CtGraphicUnitActionsXElementType),
        Clips(CtGraphicUnitClipsXElementType),
        FillColor(CtColorXType),
        StrokeColor(CtColorXType),
        CgTransform(CtCgTransformXType),
        TextCode(CtTextTextCodeXElementType),
    }
    pub type Page = PageXElementType;
    #[derive(Debug)]
    pub struct PageXElementType {
        pub template: Vec<PageTemplateXElementType>,
        pub page_res: Vec<String>,
        pub area: Option<super::definition::CtPageAreaXType>,
        pub content: Option<PageContentXElementType>,
        pub actions: Option<CtGraphicUnitActionsXElementType>,
    }
    #[derive(Debug)]
    pub enum CtAxialShdMapTypeXType {
        Direct,
        Repeat,
        Reflect,
    }
    #[derive(Debug)]
    pub enum CtAxialShdExtendXType {
        _0,
        _1,
        _2,
        _3,
    }
    #[derive(Debug)]
    pub struct CtAxialShdSegmentXElementType {
        pub position: Option<f64>,
        pub color: Box<CtColorXType>,
    }
    #[derive(Debug)]
    pub struct CtClipAreaXElementType {
        pub draw_param: Option<u32>,
        pub ctm: Option<String>,
        pub content: CtClipAreaXElementTypeContent,
    }
    #[derive(Debug)]
    pub enum CtClipAreaXElementTypeContent {
        Path(CtPathXType),
        Text(CtTextXType),
    }
    #[derive(Debug)]
    pub enum CtGraphicUnitCapXType {
        Butt,
        Round,
        Square,
    }
    #[derive(Debug)]
    pub enum CtGraphicUnitJoinXType {
        Miter,
        Round,
        Bevel,
    }
    #[derive(Debug)]
    pub struct CtGraphicUnitActionsXElementType {
        pub action: Vec<super::definition::CtActionXType>,
    }
    #[derive(Debug)]
    pub struct CtGraphicUnitClipsXElementType {
        pub clip: Vec<CtClipXType>,
    }
    #[derive(Debug)]
    pub struct CtGouraudShdPointXElementType {
        pub x: f64,
        pub y: f64,
        pub edge_flag: Option<CtGouraudShdPointEdgeFlagXType>,
        pub color: Box<CtColorXType>,
    }
    #[derive(Debug)]
    pub struct CtImageBorderXElementType {
        pub line_width: f64,
        pub horizonal_corner_radius: f64,
        pub vertical_corner_radius: f64,
        pub dash_offset: f64,
        pub dash_pattern: Option<String>,
        pub border_color: Option<CtColorXType>,
    }
    #[derive(Debug)]
    pub struct CtLaGouraudShdPointXElementType {
        pub x: Option<f64>,
        pub y: Option<f64>,
        pub color: Box<CtColorXType>,
    }
    #[derive(Debug)]
    pub enum CtLayerTypeXType {
        Body,
        Background,
        Foreground,
        Custom,
    }
    #[derive(Debug)]
    pub struct CtPageBlockTextObjectXElementType {
        pub boundary: String,
        pub name: Option<String>,
        pub visible: bool,
        pub ctm: Option<String>,
        pub draw_param: Option<u32>,
        pub line_width: f64,
        pub cap: CtGraphicUnitCapXType,
        pub join: CtGraphicUnitJoinXType,
        pub miter_limit: f64,
        pub dash_offset: f64,
        pub dash_pattern: Option<String>,
        pub alpha: i32,
        pub font: u32,
        pub size: f64,
        pub stroke: bool,
        pub fill: bool,
        pub h_scale: f64,
        pub read_direction: i32,
        pub char_direction: i32,
        pub weight: CtTextWeightXType,
        pub italic: bool,
        pub id: u32,
        pub content: Vec<CtPageBlockTextObjectXElementTypeContent>,
    }
    #[derive(Debug)]
    pub enum CtPageBlockTextObjectXElementTypeContent {
        Actions(CtGraphicUnitActionsXElementType),
        Clips(CtGraphicUnitClipsXElementType),
        FillColor(CtColorXType),
        StrokeColor(CtColorXType),
        CgTransform(CtCgTransformXType),
        TextCode(CtTextTextCodeXElementType),
    }
    #[derive(Debug)]
    pub struct CtPageBlockPathObjectXElementType {
        pub boundary: String,
        pub name: Option<String>,
        pub visible: bool,
        pub ctm: Option<String>,
        pub draw_param: Option<u32>,
        pub line_width: f64,
        pub cap: CtGraphicUnitCapXType,
        pub join: CtGraphicUnitJoinXType,
        pub miter_limit: f64,
        pub dash_offset: f64,
        pub dash_pattern: Option<String>,
        pub alpha: i32,
        pub stroke: bool,
        pub fill: bool,
        pub rule: CtPathRuleXType,
        pub id: u32,
        pub actions: Option<CtGraphicUnitActionsXElementType>,
        pub clips: Option<CtGraphicUnitClipsXElementType>,
        pub stroke_color: Option<CtColorXType>,
        pub fill_color: Option<CtColorXType>,
        pub abbreviated_data: String,
    }
    #[derive(Debug)]
    pub struct CtPageBlockImageObjectXElementType {
        pub boundary: String,
        pub name: Option<String>,
        pub visible: bool,
        pub ctm: Option<String>,
        pub draw_param: Option<u32>,
        pub line_width: f64,
        pub cap: CtGraphicUnitCapXType,
        pub join: CtGraphicUnitJoinXType,
        pub miter_limit: f64,
        pub dash_offset: f64,
        pub dash_pattern: Option<String>,
        pub alpha: i32,
        pub resource_id: u32,
        pub substitution: Option<u32>,
        pub image_mask: Option<u32>,
        pub id: u32,
        pub actions: Option<CtGraphicUnitActionsXElementType>,
        pub clips: Option<CtGraphicUnitClipsXElementType>,
        pub border: Option<CtImageBorderXElementType>,
    }
    #[derive(Debug)]
    pub struct CtPageBlockCompositeObjectXElementType {
        pub boundary: String,
        pub name: Option<String>,
        pub visible: bool,
        pub ctm: Option<String>,
        pub draw_param: Option<u32>,
        pub line_width: f64,
        pub cap: CtGraphicUnitCapXType,
        pub join: CtGraphicUnitJoinXType,
        pub miter_limit: f64,
        pub dash_offset: f64,
        pub dash_pattern: Option<String>,
        pub alpha: i32,
        pub resource_id: u32,
        pub id: u32,
        pub actions: Option<CtGraphicUnitActionsXElementType>,
        pub clips: Option<CtGraphicUnitClipsXElementType>,
    }
    #[derive(Debug)]
    pub struct CtPageBlockPageBlockXElementType {
        pub id: u32,
        pub content: Vec<CtPageBlockPageBlockXElementTypeContent>,
    }
    #[derive(Debug)]
    pub enum CtPageBlockPageBlockXElementTypeContent {
        TextObject(CtPageBlockTextObjectXElementType),
        PathObject(CtPageBlockPathObjectXElementType),
        ImageObject(CtPageBlockImageObjectXElementType),
        CompositeObject(CtPageBlockCompositeObjectXElementType),
        PageBlock(CtPageBlockPageBlockXElementType),
    }
    #[derive(Debug)]
    pub enum CtPathRuleXType {
        NonZero,
        EvenOdd,
    }
    #[derive(Debug)]
    pub enum CtPatternReflectMethodXType {
        Normal,
        Row,
        Column,
        RowAndColumn,
    }
    #[derive(Debug)]
    pub enum CtPatternRelativeToXType {
        Page,
        Object,
    }
    #[derive(Debug)]
    pub struct CtPatternCellContentXElementType {
        pub thumbnail: Option<u32>,
        pub content: Vec<CtPatternCellContentXElementTypeContent>,
    }
    #[derive(Debug)]
    pub enum CtPatternCellContentXElementTypeContent {
        TextObject(CtPageBlockTextObjectXElementType),
        PathObject(CtPageBlockPathObjectXElementType),
        ImageObject(CtPageBlockImageObjectXElementType),
        CompositeObject(CtPageBlockCompositeObjectXElementType),
        PageBlock(CtPageBlockPageBlockXElementType),
    }
    #[derive(Debug)]
    pub enum CtTextWeightXType {
        _0,
        _100,
        _200,
        _300,
        _400,
        _500,
        _600,
        _700,
        _800,
        _900,
        _1000,
    }
    #[derive(Debug)]
    pub struct CtTextTextCodeXElementType {
        pub x: Option<f64>,
        pub y: Option<f64>,
        pub delta_x: Option<String>,
        pub deltay: Option<String>,
        pub content: String,
    }
    #[derive(Debug)]
    pub struct PageTemplateXElementType {
        pub template_id: u32,
        pub z_order: PageTemplateZOrderXType,
    }
    #[derive(Debug)]
    pub struct PageContentXElementType {
        pub layer: Vec<PageContentLayerXElementType>,
    }
    #[derive(Debug)]
    pub enum CtGouraudShdPointEdgeFlagXType {
        _0,
        _1,
        _2,
    }
    #[derive(Debug)]
    pub enum PageTemplateZOrderXType {
        Backqround,
        Foreground,
    }
    #[derive(Debug)]
    pub struct PageContentLayerXElementType {
        pub type_: CtLayerTypeXType,
        pub draw_param: Option<u32>,
        pub id: u32,
        pub content: Vec<PageContentLayerXElementTypeContent>,
    }
    #[derive(Debug)]
    pub enum PageContentLayerXElementTypeContent {
        TextObject(CtPageBlockTextObjectXElementType),
        PathObject(CtPageBlockPathObjectXElementType),
        ImageObject(CtPageBlockImageObjectXElementType),
        CompositeObject(CtPageBlockCompositeObjectXElementType),
        PageBlock(CtPageBlockPageBlockXElementType),
    }
}
pub mod res {
    #[derive(Debug)]
    pub struct CtColorSpaceXType {
        pub type_: CtColorSpaceTypeXType,
        pub bits_per_component: i32,
        pub profile: Option<String>,
        pub palette: Option<CtColorSpacePaletteXElementType>,
    }
    #[derive(Debug)]
    pub struct CtDrawParamXType {
        pub relative: Option<u32>,
        pub line_width: f64,
        pub join: String,
        pub cap: String,
        pub dash_offset: f64,
        pub dash_pattern: Option<String>,
        pub miter_limit: f64,
        pub fill_color: Option<super::page::CtColorXType>,
        pub stroke_color: Option<super::page::CtColorXType>,
    }
    #[derive(Debug)]
    pub struct CtFontXType {
        pub font_name: String,
        pub family_name: Option<String>,
        pub charset: CtFontCharsetXType,
        pub italic: bool,
        pub bold: bool,
        pub serif: bool,
        pub fixed_width: bool,
        pub font_file: Option<String>,
    }
    #[derive(Debug)]
    pub struct CtMultiMediaXType {
        pub type_: CtMultiMediaTypeXType,
        pub format: Option<String>,
        pub media_file: String,
    }
    #[derive(Debug)]
    pub struct CtVectorGxType {
        pub width: f64,
        pub height: f64,
        pub thumbnail: Option<u32>,
        pub substitution: Option<u32>,
        pub content: super::page::CtPageBlockXType,
    }
    pub type Res = ResXElementType;
    #[derive(Debug)]
    pub struct ResXElementType {
        pub base_loc: String,
        pub content: Vec<ResXElementTypeContent>,
    }
    #[derive(Debug)]
    pub enum ResXElementTypeContent {
        ColorSpaces(ResColorSpacesXElementType),
        DrawParams(ResDrawParamsXElementType),
        Fonts(ResFontsXElementType),
        MultiMedias(ResMultiMediasXElementType),
        CompositeGraphicUnits(ResCompositeGraphicUnitsXElementType),
    }
    #[derive(Debug)]
    pub enum CtColorSpaceTypeXType {
        Gray,
        Rgb,
        Cmyk,
    }
    #[derive(Debug)]
    pub struct CtColorSpacePaletteXElementType {
        pub cv: Vec<String>,
    }
    #[derive(Debug)]
    pub enum CtFontCharsetXType {
        Symbol,
        Prc,
        Big5,
        ShiftIis,
        Wansung,
        Johab,
        Unicode,
    }
    #[derive(Debug)]
    pub enum CtMultiMediaTypeXType {
        Image,
        Audio,
        Video,
    }
    #[derive(Debug)]
    pub struct ResColorSpacesXElementType {
        pub color_space: Vec<ResColorSpacesColorSpaceXElementType>,
    }
    #[derive(Debug)]
    pub struct ResDrawParamsXElementType {
        pub draw_param: Vec<ResDrawParamsDrawParamXElementType>,
    }
    #[derive(Debug)]
    pub struct ResFontsXElementType {
        pub font: Vec<ResFontsFontXElementType>,
    }
    #[derive(Debug)]
    pub struct ResMultiMediasXElementType {
        pub multi_media: Vec<ResMultiMediasMultiMediaXElementType>,
    }
    #[derive(Debug)]
    pub struct ResCompositeGraphicUnitsXElementType {
        pub composite_graphic_unit: Vec<ResCompositeGraphicUnitsCompositeGraphicUnitXElementType>,
    }
    #[derive(Debug)]
    pub struct ResColorSpacesColorSpaceXElementType {
        pub type_: CtColorSpaceTypeXType,
        pub bits_per_component: i32,
        pub profile: Option<String>,
        pub id: u32,
        pub palette: Option<CtColorSpacePaletteXElementType>,
    }
    #[derive(Debug)]
    pub struct ResDrawParamsDrawParamXElementType {
        pub relative: Option<u32>,
        pub line_width: f64,
        pub join: String,
        pub cap: String,
        pub dash_offset: f64,
        pub dash_pattern: Option<String>,
        pub miter_limit: f64,
        pub id: u32,
        pub fill_color: Option<super::page::CtColorXType>,
        pub stroke_color: Option<super::page::CtColorXType>,
    }
    #[derive(Debug)]
    pub struct ResFontsFontXElementType {
        pub font_name: String,
        pub family_name: Option<String>,
        pub charset: CtFontCharsetXType,
        pub italic: bool,
        pub bold: bool,
        pub serif: bool,
        pub fixed_width: bool,
        pub id: u32,
        pub font_file: Option<String>,
    }
    #[derive(Debug)]
    pub struct ResMultiMediasMultiMediaXElementType {
        pub type_: CtMultiMediaTypeXType,
        pub format: Option<String>,
        pub id: u32,
        pub media_file: String,
    }
    #[derive(Debug)]
    pub struct ResCompositeGraphicUnitsCompositeGraphicUnitXElementType {
        pub width: f64,
        pub height: f64,
        pub id: u32,
        pub thumbnail: Option<u32>,
        pub substitution: Option<u32>,
        pub content: super::page::CtPageBlockXType,
    }
}
pub mod signature {
    pub type Sianature = SianatureXElementType;
    #[derive(Debug)]
    pub struct SianatureXElementType {
        pub siqned_info: SianatureSiqnedInfoXElementType,
        pub signed_value: String,
    }
    #[derive(Debug)]
    pub struct SianatureSiqnedInfoXElementType {
        pub provider: SianatureSiqnedInfoProviderXElementType,
        pub signature_method: Option<String>,
        pub sianature_date_time: Option<String>,
        pub references: SianatureSiqnedInfoReferencesXElementType,
        pub stamp_annot: Vec<SianatureSiqnedInfoStampAnnotXElementType>,
        pub seal: Option<SianatureSiqnedInfoSealXElementType>,
    }
    #[derive(Debug)]
    pub struct SianatureSiqnedInfoProviderXElementType {
        pub provider_name: String,
        pub version: Option<String>,
        pub company: Option<String>,
    }
    #[derive(Debug)]
    pub struct SianatureSiqnedInfoReferencesXElementType {
        pub check_method: SianatureSiqnedInfoReferencesCheckMethodXType,
        pub reference: Vec<SianatureSiqnedInfoReferencesReferenceXElementType>,
    }
    #[derive(Debug)]
    pub struct SianatureSiqnedInfoStampAnnotXElementType {
        pub id: String,
        pub page_ref: u32,
        pub boundary: String,
        pub clip: Option<String>,
    }
    #[derive(Debug)]
    pub struct SianatureSiqnedInfoSealXElementType {
        pub base_loc: String,
    }
    #[derive(Debug)]
    pub enum SianatureSiqnedInfoReferencesCheckMethodXType {
        Md5,
        Sha1,
    }
    #[derive(Debug)]
    pub struct SianatureSiqnedInfoReferencesReferenceXElementType {
        pub file_ref: String,
        pub check_value: String,
    }
}
pub mod signatures {
    pub type Siqnatures = SiqnaturesXElementType;
    #[derive(Debug)]
    pub struct SiqnaturesXElementType {
        pub max_sign_id: Option<String>,
        pub signature: Vec<SiqnaturesSignatureXElementType>,
    }
    #[derive(Debug)]
    pub struct SiqnaturesSignatureXElementType {
        pub id: String,
        pub type_: SiqnaturesSignatureTypeXType,
        pub base_loc: String,
    }
    #[derive(Debug)]
    pub enum SiqnaturesSignatureTypeXType {
        Seal,
        Siqn,
    }
}
pub mod version {
    pub type DocVersion = DocVersionXElementType;
    #[derive(Debug)]
    pub struct DocVersionXElementType {
        pub id: String,
        pub version: Option<String>,
        pub name: Option<String>,
        pub creation_date: Option<String>,
        pub file_list: DocVersionFileListXElementType,
        pub doc_root: String,
    }
    #[derive(Debug)]
    pub struct DocVersionFileListXElementType {
        pub file: Vec<DocVersionFileListFileXElementType>,
    }
    #[derive(Debug)]
    pub struct DocVersionFileListFileXElementType {
        pub id: String,
        pub content: String,
    }
}
pub mod xs {
    use core::num::{NonZeroIsize, NonZeroUsize};
    use num::{BigInt, BigUint};
    #[derive(Debug, Default)]
    pub struct EntitiesXType(pub Vec<String>);
    pub type EntityXType = String;
    pub type IdXType = String;
    pub type IdrefXType = String;
    pub type IdrefsXType = EntitiesXType;
    pub type NcNameXType = String;
    pub type NmtokenXType = String;
    pub type NmtokensXType = EntitiesXType;
    pub type NotationXType = String;
    pub type NameXType = String;
    pub type QNameXType = String;
    #[derive(Debug)]
    pub struct AnySimpleTypeXType {
        pub type_: Option<String>,
        pub content: String,
    }
    pub type AnyUriXType = String;
    pub type Base64BinaryXType = String;
    pub type BooleanXType = bool;
    pub type ByteXType = i8;
    pub type DateXType = String;
    pub type DateTimeXType = String;
    pub type DecimalXType = f64;
    pub type DoubleXType = f64;
    pub type DurationXType = String;
    pub type FloatXType = f32;
    pub type GDayXType = String;
    pub type GMonthXType = String;
    pub type GMonthDayXType = String;
    pub type GYearXType = String;
    pub type GYearMonthXType = String;
    pub type HexBinaryXType = String;
    pub type IntXType = i32;
    pub type IntegerXType = BigInt;
    pub type LanguageXType = String;
    pub type LongXType = i64;
    pub type NegativeIntegerXType = NonZeroIsize;
    pub type NonNegativeIntegerXType = BigUint;
    pub type NonPositiveIntegerXType = BigInt;
    pub type NormalizedStringXType = String;
    pub type PositiveIntegerXType = NonZeroUsize;
    pub type ShortXType = i16;
    pub type StringXType = String;
    pub type TimeXType = String;
    pub type TokenXType = String;
    pub type UnsignedByteXType = u8;
    pub type UnsignedIntXType = u32;
    pub type UnsignedLongXType = u64;
    pub type UnsignedShortXType = u16;
}