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
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
#![allow(non_camel_case_types)]
#![allow(unused_imports)]
use serde::de::{value, Deserializer, IntoDeserializer};
use serde::{Deserialize, Serialize, Serializer};
use std::str::FromStr;
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct AggregatedDataForResultTrend {
    #[doc = "This is tests execution duration."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub duration: Option<String>,
    #[serde(
        rename = "resultsByOutcome",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub results_by_outcome: Option<serde_json::Value>,
    #[serde(
        rename = "runSummaryByState",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub run_summary_by_state: Option<serde_json::Value>,
    #[doc = ""]
    #[serde(
        rename = "testResultsContext",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub test_results_context: Option<TestResultsContext>,
    #[serde(
        rename = "totalTests",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub total_tests: Option<i32>,
}
impl AggregatedDataForResultTrend {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "Result deatils for a particular test result outcome."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct AggregatedResultDetailsByOutcome {
    #[doc = "Number of results for current outcome."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub count: Option<i32>,
    #[doc = "Time taken by results."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub duration: Option<String>,
    #[doc = "Test result outcome"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub outcome: Option<aggregated_result_details_by_outcome::Outcome>,
    #[doc = "Number of results on rerun"]
    #[serde(
        rename = "rerunResultCount",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub rerun_result_count: Option<i32>,
}
impl AggregatedResultDetailsByOutcome {
    pub fn new() -> Self {
        Self::default()
    }
}
pub mod aggregated_result_details_by_outcome {
    use super::*;
    #[doc = "Test result outcome"]
    #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
    pub enum Outcome {
        #[serde(rename = "unspecified")]
        Unspecified,
        #[serde(rename = "none")]
        None,
        #[serde(rename = "passed")]
        Passed,
        #[serde(rename = "failed")]
        Failed,
        #[serde(rename = "inconclusive")]
        Inconclusive,
        #[serde(rename = "timeout")]
        Timeout,
        #[serde(rename = "aborted")]
        Aborted,
        #[serde(rename = "blocked")]
        Blocked,
        #[serde(rename = "notExecuted")]
        NotExecuted,
        #[serde(rename = "warning")]
        Warning,
        #[serde(rename = "error")]
        Error,
        #[serde(rename = "notApplicable")]
        NotApplicable,
        #[serde(rename = "paused")]
        Paused,
        #[serde(rename = "inProgress")]
        InProgress,
        #[serde(rename = "notImpacted")]
        NotImpacted,
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct AggregatedResultsAnalysis {
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub duration: Option<String>,
    #[serde(
        rename = "notReportedResultsByOutcome",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub not_reported_results_by_outcome: Option<serde_json::Value>,
    #[doc = ""]
    #[serde(
        rename = "previousContext",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub previous_context: Option<TestResultsContext>,
    #[serde(
        rename = "resultsByOutcome",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub results_by_outcome: Option<serde_json::Value>,
    #[doc = ""]
    #[serde(
        rename = "resultsDifference",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub results_difference: Option<AggregatedResultsDifference>,
    #[serde(
        rename = "runSummaryByOutcome",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub run_summary_by_outcome: Option<serde_json::Value>,
    #[serde(
        rename = "runSummaryByState",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub run_summary_by_state: Option<serde_json::Value>,
    #[serde(
        rename = "totalTests",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub total_tests: Option<i32>,
}
impl AggregatedResultsAnalysis {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct AggregatedResultsByOutcome {
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub count: Option<i32>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub duration: Option<String>,
    #[serde(
        rename = "groupByField",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub group_by_field: Option<String>,
    #[serde(
        rename = "groupByValue",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub group_by_value: Option<serde_json::Value>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub outcome: Option<aggregated_results_by_outcome::Outcome>,
    #[serde(
        rename = "rerunResultCount",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub rerun_result_count: Option<i32>,
}
impl AggregatedResultsByOutcome {
    pub fn new() -> Self {
        Self::default()
    }
}
pub mod aggregated_results_by_outcome {
    use super::*;
    #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
    pub enum Outcome {
        #[serde(rename = "unspecified")]
        Unspecified,
        #[serde(rename = "none")]
        None,
        #[serde(rename = "passed")]
        Passed,
        #[serde(rename = "failed")]
        Failed,
        #[serde(rename = "inconclusive")]
        Inconclusive,
        #[serde(rename = "timeout")]
        Timeout,
        #[serde(rename = "aborted")]
        Aborted,
        #[serde(rename = "blocked")]
        Blocked,
        #[serde(rename = "notExecuted")]
        NotExecuted,
        #[serde(rename = "warning")]
        Warning,
        #[serde(rename = "error")]
        Error,
        #[serde(rename = "notApplicable")]
        NotApplicable,
        #[serde(rename = "paused")]
        Paused,
        #[serde(rename = "inProgress")]
        InProgress,
        #[serde(rename = "notImpacted")]
        NotImpacted,
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct AggregatedResultsDifference {
    #[serde(
        rename = "increaseInDuration",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub increase_in_duration: Option<String>,
    #[serde(
        rename = "increaseInFailures",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub increase_in_failures: Option<i32>,
    #[serde(
        rename = "increaseInNonImpactedTests",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub increase_in_non_impacted_tests: Option<i32>,
    #[serde(
        rename = "increaseInOtherTests",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub increase_in_other_tests: Option<i32>,
    #[serde(
        rename = "increaseInPassedTests",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub increase_in_passed_tests: Option<i32>,
    #[serde(
        rename = "increaseInTotalTests",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub increase_in_total_tests: Option<i32>,
}
impl AggregatedResultsDifference {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct AggregatedRunsByOutcome {
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub outcome: Option<aggregated_runs_by_outcome::Outcome>,
    #[serde(rename = "runsCount", default, skip_serializing_if = "Option::is_none")]
    pub runs_count: Option<i32>,
}
impl AggregatedRunsByOutcome {
    pub fn new() -> Self {
        Self::default()
    }
}
pub mod aggregated_runs_by_outcome {
    use super::*;
    #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
    pub enum Outcome {
        #[serde(rename = "passed")]
        Passed,
        #[serde(rename = "failed")]
        Failed,
        #[serde(rename = "notImpacted")]
        NotImpacted,
        #[serde(rename = "others")]
        Others,
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct AggregatedRunsByState {
    #[serde(
        rename = "resultsByOutcome",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub results_by_outcome: Option<serde_json::Value>,
    #[serde(rename = "runsCount", default, skip_serializing_if = "Option::is_none")]
    pub runs_count: Option<i32>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub state: Option<aggregated_runs_by_state::State>,
}
impl AggregatedRunsByState {
    pub fn new() -> Self {
        Self::default()
    }
}
pub mod aggregated_runs_by_state {
    use super::*;
    #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
    pub enum State {
        #[serde(rename = "unspecified")]
        Unspecified,
        #[serde(rename = "notStarted")]
        NotStarted,
        #[serde(rename = "inProgress")]
        InProgress,
        #[serde(rename = "completed")]
        Completed,
        #[serde(rename = "aborted")]
        Aborted,
        #[serde(rename = "waiting")]
        Waiting,
        #[serde(rename = "needsInvestigation")]
        NeedsInvestigation,
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct Attachment {
    #[serde(
        rename = "compressionType",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub compression_type: Option<String>,
    #[serde(rename = "fileName", default, skip_serializing_if = "Option::is_none")]
    pub file_name: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub stream: Option<String>,
}
impl Attachment {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "BuildConfiguration Details."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct BuildConfiguration {
    #[doc = "Branch name for which build is generated."]
    #[serde(
        rename = "branchName",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub branch_name: Option<String>,
    #[doc = "BuildDefinitionId for build."]
    #[serde(
        rename = "buildDefinitionId",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub build_definition_id: Option<i32>,
    #[doc = "Build system."]
    #[serde(
        rename = "buildSystem",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub build_system: Option<String>,
    #[doc = "Build Creation Date."]
    #[serde(
        rename = "creationDate",
        default,
        skip_serializing_if = "Option::is_none",
        with = "crate::date_time::rfc3339::option"
    )]
    pub creation_date: Option<time::OffsetDateTime>,
    #[doc = "Build flavor (eg Build/Release)."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub flavor: Option<String>,
    #[doc = "BuildConfiguration Id."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub id: Option<i32>,
    #[doc = "Build Number."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub number: Option<String>,
    #[doc = "BuildConfiguration Platform."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub platform: Option<String>,
    #[doc = "An abstracted reference to some other resource. This class is used to provide the build data contracts with a uniform way to reference other resources in a way that provides easy traversal through links."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub project: Option<ShallowReference>,
    #[doc = "Repository Guid for the Build."]
    #[serde(
        rename = "repositoryGuid",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub repository_guid: Option<String>,
    #[doc = "Repository Type (eg. TFSGit)."]
    #[serde(
        rename = "repositoryType",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub repository_type: Option<String>,
    #[doc = "Source Version(/first commit) for the build was triggered."]
    #[serde(
        rename = "sourceVersion",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub source_version: Option<String>,
    #[doc = "Target BranchName."]
    #[serde(
        rename = "targetBranchName",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub target_branch_name: Option<String>,
    #[doc = "Build Uri."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub uri: Option<String>,
}
impl BuildConfiguration {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "Build Coverage Detail"]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct BuildCoverage {
    #[doc = "Code Coverage File Url"]
    #[serde(
        rename = "codeCoverageFileUrl",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub code_coverage_file_url: Option<String>,
    #[doc = "BuildConfiguration Details."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub configuration: Option<BuildConfiguration>,
    #[doc = "Last Error"]
    #[serde(rename = "lastError", default, skip_serializing_if = "Option::is_none")]
    pub last_error: Option<String>,
    #[doc = "List of Modules"]
    #[serde(
        default,
        skip_serializing_if = "Vec::is_empty",
        deserialize_with = "crate::serde::deserialize_null_default"
    )]
    pub modules: Vec<ModuleCoverage>,
    #[doc = "State"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub state: Option<String>,
}
impl BuildCoverage {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "Reference to a build."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct BuildReference {
    #[doc = "Branch name."]
    #[serde(
        rename = "branchName",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub branch_name: Option<String>,
    #[doc = "Build system."]
    #[serde(
        rename = "buildSystem",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub build_system: Option<String>,
    #[doc = "Build Definition ID."]
    #[serde(
        rename = "definitionId",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub definition_id: Option<i32>,
    #[doc = "Build ID."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub id: Option<i32>,
    #[doc = "Build Number."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub number: Option<String>,
    #[doc = "Repository ID."]
    #[serde(
        rename = "repositoryId",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub repository_id: Option<String>,
    #[doc = "Build URI."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub uri: Option<String>,
}
impl BuildReference {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "Represents the build configuration (platform, flavor) and coverage data for the build"]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct CodeCoverageData {
    #[doc = "Flavor of build for which data is retrieved/published"]
    #[serde(
        rename = "buildFlavor",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub build_flavor: Option<String>,
    #[doc = "Platform of build for which data is retrieved/published"]
    #[serde(
        rename = "buildPlatform",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub build_platform: Option<String>,
    #[doc = "List of coverage data for the build"]
    #[serde(
        rename = "coverageStats",
        default,
        skip_serializing_if = "Vec::is_empty",
        deserialize_with = "crate::serde::deserialize_null_default"
    )]
    pub coverage_stats: Vec<CodeCoverageStatistics>,
}
impl CodeCoverageData {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "Represents the code coverage statistics for a particular coverage label (modules, statements, blocks, etc.)"]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct CodeCoverageStatistics {
    #[doc = "Covered units"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub covered: Option<i32>,
    #[doc = "Delta of coverage"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub delta: Option<f64>,
    #[doc = "Is delta valid"]
    #[serde(
        rename = "isDeltaAvailable",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub is_delta_available: Option<bool>,
    #[doc = "Label of coverage data (\"Blocks\", \"Statements\", \"Modules\", etc.)"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub label: Option<String>,
    #[doc = "Position of label"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub position: Option<i32>,
    #[doc = "Total units"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub total: Option<i32>,
}
impl CodeCoverageStatistics {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "Represents the code coverage summary results Used to publish or retrieve code coverage summary against a build"]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct CodeCoverageSummary {
    #[doc = "An abstracted reference to some other resource. This class is used to provide the build data contracts with a uniform way to reference other resources in a way that provides easy traversal through links."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub build: Option<ShallowReference>,
    #[doc = "List of coverage data and details for the build"]
    #[serde(
        rename = "coverageData",
        default,
        skip_serializing_if = "Vec::is_empty",
        deserialize_with = "crate::serde::deserialize_null_default"
    )]
    pub coverage_data: Vec<CodeCoverageData>,
    #[doc = "An abstracted reference to some other resource. This class is used to provide the build data contracts with a uniform way to reference other resources in a way that provides easy traversal through links."]
    #[serde(
        rename = "deltaBuild",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub delta_build: Option<ShallowReference>,
    #[doc = "Uri of build against which difference in coverage is computed"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub status: Option<code_coverage_summary::Status>,
}
impl CodeCoverageSummary {
    pub fn new() -> Self {
        Self::default()
    }
}
pub mod code_coverage_summary {
    use super::*;
    #[doc = "Uri of build against which difference in coverage is computed"]
    #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
    pub enum Status {
        #[serde(rename = "none")]
        None,
        #[serde(rename = "inProgress")]
        InProgress,
        #[serde(rename = "completed")]
        Completed,
        #[serde(rename = "finalized")]
        Finalized,
        #[serde(rename = "pending")]
        Pending,
        #[serde(rename = "updateRequestQueued")]
        UpdateRequestQueued,
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct CoverageStatistics {
    #[serde(
        rename = "blocksCovered",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub blocks_covered: Option<i32>,
    #[serde(
        rename = "blocksNotCovered",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub blocks_not_covered: Option<i32>,
    #[serde(
        rename = "linesCovered",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub lines_covered: Option<i32>,
    #[serde(
        rename = "linesNotCovered",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub lines_not_covered: Option<i32>,
    #[serde(
        rename = "linesPartiallyCovered",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub lines_partially_covered: Option<i32>,
}
impl CoverageStatistics {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "A custom field information. Allowed Key : Value pairs - ( AttemptId: int value, IsTestResultFlaky: bool)"]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct CustomTestField {
    #[doc = "Field Name."]
    #[serde(rename = "fieldName", default, skip_serializing_if = "Option::is_none")]
    pub field_name: Option<String>,
    #[doc = "Field value."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub value: Option<serde_json::Value>,
}
impl CustomTestField {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "This is a temporary class to provide the details for the test run environment."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct DtlEnvironmentDetails {
    #[serde(
        rename = "csmContent",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub csm_content: Option<String>,
    #[serde(
        rename = "csmParameters",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub csm_parameters: Option<String>,
    #[serde(
        rename = "subscriptionName",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub subscription_name: Option<String>,
}
impl DtlEnvironmentDetails {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "Failing since information of a test result."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct FailingSince {
    #[doc = "Reference to a build."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub build: Option<BuildReference>,
    #[doc = "Time since failing(UTC)."]
    #[serde(
        default,
        skip_serializing_if = "Option::is_none",
        with = "crate::date_time::rfc3339::option"
    )]
    pub date: Option<time::OffsetDateTime>,
    #[doc = "Reference to a release."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub release: Option<ReleaseReference>,
}
impl FailingSince {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct FieldDetailsForTestResults {
    #[doc = "Group by field name"]
    #[serde(rename = "fieldName", default, skip_serializing_if = "Option::is_none")]
    pub field_name: Option<String>,
    #[doc = "Group by field values"]
    #[serde(
        rename = "groupsForField",
        default,
        skip_serializing_if = "Vec::is_empty",
        deserialize_with = "crate::serde::deserialize_null_default"
    )]
    pub groups_for_field: Vec<serde_json::Value>,
}
impl FieldDetailsForTestResults {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct FileCoverageRequest {
    #[serde(rename = "filePath", default, skip_serializing_if = "Option::is_none")]
    pub file_path: Option<String>,
    #[serde(
        rename = "pullRequestBaseIterationId",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub pull_request_base_iteration_id: Option<i32>,
    #[serde(
        rename = "pullRequestId",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub pull_request_id: Option<i32>,
    #[serde(
        rename = "pullRequestIterationId",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub pull_request_iteration_id: Option<i32>,
    #[serde(rename = "repoId", default, skip_serializing_if = "Option::is_none")]
    pub repo_id: Option<String>,
}
impl FileCoverageRequest {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct FlakyDetection {
    #[doc = ""]
    #[serde(
        rename = "flakyDetectionPipelines",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub flaky_detection_pipelines: Option<FlakyDetectionPipelines>,
    #[doc = "FlakyDetectionType defines Detection type i.e. 1. System or 2. Manual."]
    #[serde(
        rename = "flakyDetectionType",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub flaky_detection_type: Option<flaky_detection::FlakyDetectionType>,
}
impl FlakyDetection {
    pub fn new() -> Self {
        Self::default()
    }
}
pub mod flaky_detection {
    use super::*;
    #[doc = "FlakyDetectionType defines Detection type i.e. 1. System or 2. Manual."]
    #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
    pub enum FlakyDetectionType {
        #[serde(rename = "custom")]
        Custom,
        #[serde(rename = "system")]
        System,
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct FlakyDetectionPipelines {
    #[doc = "AllowedPipelines - List All Pipelines allowed for detection."]
    #[serde(
        rename = "allowedPipelines",
        default,
        skip_serializing_if = "Vec::is_empty",
        deserialize_with = "crate::serde::deserialize_null_default"
    )]
    pub allowed_pipelines: Vec<i32>,
    #[doc = "IsAllPipelinesAllowed if users configure all system's pipelines."]
    #[serde(
        rename = "isAllPipelinesAllowed",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub is_all_pipelines_allowed: Option<bool>,
}
impl FlakyDetectionPipelines {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct FlakySettings {
    #[doc = ""]
    #[serde(
        rename = "flakyDetection",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub flaky_detection: Option<FlakyDetection>,
    #[doc = "FlakyInSummaryReport defines flaky data should show in summary report or not."]
    #[serde(
        rename = "flakyInSummaryReport",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub flaky_in_summary_report: Option<bool>,
    #[doc = "IsFlakyBugCreated defines if there is any bug that has been created with flaky testresult."]
    #[serde(
        rename = "isFlakyBugCreated",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub is_flaky_bug_created: Option<bool>,
    #[doc = "ManualMarkUnmarkFlaky defines manual marking unmarking of flaky testcase."]
    #[serde(
        rename = "manualMarkUnmarkFlaky",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub manual_mark_unmark_flaky: Option<bool>,
}
impl FlakySettings {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct FunctionCoverage {
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub class: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub namespace: Option<String>,
    #[serde(
        rename = "sourceFile",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub source_file: Option<String>,
    #[doc = ""]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub statistics: Option<CoverageStatistics>,
}
impl FunctionCoverage {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct GraphSubjectBase {
    #[doc = ""]
    #[serde(rename = "_links", default, skip_serializing_if = "Option::is_none")]
    pub links: Option<ReferenceLinks>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub descriptor: Option<String>,
    #[serde(
        rename = "displayName",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub display_name: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub url: Option<String>,
}
impl GraphSubjectBase {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct IdentityRef {
    #[serde(flatten)]
    pub graph_subject_base: GraphSubjectBase,
    #[serde(
        rename = "directoryAlias",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub directory_alias: Option<String>,
    pub id: String,
    #[serde(rename = "imageUrl", default, skip_serializing_if = "Option::is_none")]
    pub image_url: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub inactive: Option<bool>,
    #[serde(
        rename = "isAadIdentity",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub is_aad_identity: Option<bool>,
    #[serde(
        rename = "isContainer",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub is_container: Option<bool>,
    #[serde(
        rename = "isDeletedInOrigin",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub is_deleted_in_origin: Option<bool>,
    #[serde(
        rename = "profileUrl",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub profile_url: Option<String>,
    #[serde(rename = "uniqueName")]
    pub unique_name: String,
}
impl IdentityRef {
    pub fn new(id: String, unique_name: String) -> Self {
        Self {
            graph_subject_base: GraphSubjectBase::default(),
            directory_alias: None,
            id,
            image_url: None,
            inactive: None,
            is_aad_identity: None,
            is_container: None,
            is_deleted_in_origin: None,
            profile_url: None,
            unique_name,
        }
    }
}
#[doc = "Job in pipeline. This is related to matrixing in YAML."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct JobReference {
    #[doc = "Attempt number of the job"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub attempt: Option<i32>,
    #[doc = "Matrixing in YAML generates copies of a job with different inputs in matrix. JobName is the name of those input. Maximum supported length for name is 256 character."]
    #[serde(rename = "jobName", default, skip_serializing_if = "Option::is_none")]
    pub job_name: Option<String>,
}
impl JobReference {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct ModuleCoverage {
    #[serde(
        rename = "blockCount",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub block_count: Option<i32>,
    #[serde(
        rename = "blockData",
        default,
        skip_serializing_if = "Vec::is_empty",
        deserialize_with = "crate::serde::deserialize_null_default"
    )]
    pub block_data: Vec<String>,
    #[doc = "Code Coverage File Url"]
    #[serde(rename = "fileUrl", default, skip_serializing_if = "Option::is_none")]
    pub file_url: Option<String>,
    #[serde(
        default,
        skip_serializing_if = "Vec::is_empty",
        deserialize_with = "crate::serde::deserialize_null_default"
    )]
    pub functions: Vec<FunctionCoverage>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub signature: Option<String>,
    #[serde(
        rename = "signatureAge",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub signature_age: Option<i32>,
    #[doc = ""]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub statistics: Option<CoverageStatistics>,
}
impl ModuleCoverage {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct NewTestResultLoggingSettings {
    #[doc = "LogNewTests defines whether or not we will record new test cases coming into the system"]
    #[serde(
        rename = "logNewTests",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub log_new_tests: Option<bool>,
}
impl NewTestResultLoggingSettings {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "Phase in pipeline"]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct PhaseReference {
    #[doc = "Attempt number of the phase"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub attempt: Option<i32>,
    #[doc = "Name of the phase. Maximum supported length for name is 256 character."]
    #[serde(rename = "phaseName", default, skip_serializing_if = "Option::is_none")]
    pub phase_name: Option<String>,
}
impl PhaseReference {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "Pipeline reference"]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct PipelineReference {
    #[doc = "Job in pipeline. This is related to matrixing in YAML."]
    #[serde(
        rename = "jobReference",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub job_reference: Option<JobReference>,
    #[doc = "Phase in pipeline"]
    #[serde(
        rename = "phaseReference",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub phase_reference: Option<PhaseReference>,
    #[doc = "Reference of the pipeline with which this pipeline instance is related."]
    #[serde(
        rename = "pipelineId",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub pipeline_id: Option<i32>,
    #[doc = "Stage in pipeline"]
    #[serde(
        rename = "stageReference",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub stage_reference: Option<StageReference>,
}
impl PipelineReference {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "Test summary of a pipeline instance."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct PipelineTestMetrics {
    #[doc = "Pipeline reference"]
    #[serde(
        rename = "currentContext",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub current_context: Option<PipelineReference>,
    #[doc = "Results insights for runs with state completed and NeedInvestigation."]
    #[serde(
        rename = "resultsAnalysis",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub results_analysis: Option<ResultsAnalysis>,
    #[doc = "Summary of results for a pipeline instance."]
    #[serde(
        rename = "resultSummary",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub result_summary: Option<ResultSummary>,
    #[doc = "Summary of runs for a pipeline instance."]
    #[serde(
        rename = "runSummary",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub run_summary: Option<RunSummary>,
    #[doc = "Summary at child node."]
    #[serde(
        rename = "summaryAtChild",
        default,
        skip_serializing_if = "Vec::is_empty",
        deserialize_with = "crate::serde::deserialize_null_default"
    )]
    pub summary_at_child: Vec<PipelineTestMetrics>,
}
impl PipelineTestMetrics {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct QueryModel {
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub query: Option<String>,
}
impl QueryModel {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct ReferenceLinks {
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub links: Option<serde_json::Value>,
}
impl ReferenceLinks {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "Reference to a release."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct ReleaseReference {
    #[doc = "Number of Release Attempt."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub attempt: Option<i32>,
    #[doc = "Release Creation Date(UTC)."]
    #[serde(
        rename = "creationDate",
        default,
        skip_serializing_if = "Option::is_none",
        with = "crate::date_time::rfc3339::option"
    )]
    pub creation_date: Option<time::OffsetDateTime>,
    #[doc = "Release definition ID."]
    #[serde(
        rename = "definitionId",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub definition_id: Option<i32>,
    #[doc = "Environment creation Date(UTC)."]
    #[serde(
        rename = "environmentCreationDate",
        default,
        skip_serializing_if = "Option::is_none",
        with = "crate::date_time::rfc3339::option"
    )]
    pub environment_creation_date: Option<time::OffsetDateTime>,
    #[doc = "Release environment definition ID."]
    #[serde(
        rename = "environmentDefinitionId",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub environment_definition_id: Option<i32>,
    #[doc = "Release environment definition name."]
    #[serde(
        rename = "environmentDefinitionName",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub environment_definition_name: Option<String>,
    #[doc = "Release environment ID."]
    #[serde(
        rename = "environmentId",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub environment_id: Option<i32>,
    #[doc = "Release environment name."]
    #[serde(
        rename = "environmentName",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub environment_name: Option<String>,
    #[doc = "Release ID."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub id: Option<i32>,
    #[doc = "Release name."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
}
impl ReleaseReference {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "Summary of results for a pipeline instance."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct ResultSummary {
    #[doc = "Result summary of pipeline, group by TestRun state."]
    #[serde(
        rename = "resultSummaryByRunState",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub result_summary_by_run_state: Option<serde_json::Value>,
}
impl ResultSummary {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "Results insights for runs with state completed and NeedInvestigation."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct ResultsAnalysis {
    #[doc = "Pipeline reference"]
    #[serde(
        rename = "previousContext",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub previous_context: Option<PipelineReference>,
    #[doc = ""]
    #[serde(
        rename = "resultsDifference",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub results_difference: Option<AggregatedResultsDifference>,
    #[doc = ""]
    #[serde(
        rename = "testFailuresAnalysis",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub test_failures_analysis: Option<TestResultFailuresAnalysis>,
}
impl ResultsAnalysis {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct ResultsFilter {
    #[serde(
        rename = "automatedTestName",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub automated_test_name: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub branch: Option<String>,
    #[serde(
        rename = "executedIn",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub executed_in: Option<results_filter::ExecutedIn>,
    #[serde(rename = "groupBy", default, skip_serializing_if = "Option::is_none")]
    pub group_by: Option<String>,
    #[serde(
        rename = "maxCompleteDate",
        default,
        skip_serializing_if = "Option::is_none",
        with = "crate::date_time::rfc3339::option"
    )]
    pub max_complete_date: Option<time::OffsetDateTime>,
    #[serde(
        rename = "resultsCount",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub results_count: Option<i32>,
    #[serde(
        rename = "testCaseId",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub test_case_id: Option<i32>,
    #[serde(
        rename = "testCaseReferenceIds",
        default,
        skip_serializing_if = "Vec::is_empty",
        deserialize_with = "crate::serde::deserialize_null_default"
    )]
    pub test_case_reference_ids: Vec<i32>,
    #[serde(
        rename = "testPlanId",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub test_plan_id: Option<i32>,
    #[serde(
        rename = "testPointIds",
        default,
        skip_serializing_if = "Vec::is_empty",
        deserialize_with = "crate::serde::deserialize_null_default"
    )]
    pub test_point_ids: Vec<i32>,
    #[doc = ""]
    #[serde(
        rename = "testResultsContext",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub test_results_context: Option<TestResultsContext>,
    #[serde(rename = "trendDays", default, skip_serializing_if = "Option::is_none")]
    pub trend_days: Option<i32>,
}
impl ResultsFilter {
    pub fn new() -> Self {
        Self::default()
    }
}
pub mod results_filter {
    use super::*;
    #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
    pub enum ExecutedIn {
        #[serde(rename = "any")]
        Any,
        #[serde(rename = "tcm")]
        Tcm,
        #[serde(rename = "tfs")]
        Tfs,
    }
}
#[doc = "Result summary by the outcome of test results."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct ResultsSummaryByOutcome {
    #[doc = "Aggregated result details for each test result outcome."]
    #[serde(
        rename = "aggregatedResultDetailsByOutcome",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub aggregated_result_details_by_outcome: Option<serde_json::Value>,
    #[doc = "Time taken by results."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub duration: Option<String>,
    #[doc = "Total number of not reported test results."]
    #[serde(
        rename = "notReportedTestCount",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub not_reported_test_count: Option<i32>,
    #[doc = "Total number of test results. (It includes NotImpacted test results as well which need to exclude while calculating pass/fail test result percentage)."]
    #[serde(
        rename = "totalTestCount",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub total_test_count: Option<i32>,
}
impl ResultsSummaryByOutcome {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "Test run create details."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct RunCreateModel {
    #[doc = "true if test run is automated, false otherwise. By default it will be false."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub automated: Option<bool>,
    #[doc = "An abstracted reference to some other resource. This class is used to provide the build data contracts with a uniform way to reference other resources in a way that provides easy traversal through links."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub build: Option<ShallowReference>,
    #[doc = "Drop location of the build used for test run."]
    #[serde(
        rename = "buildDropLocation",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub build_drop_location: Option<String>,
    #[doc = "Flavor of the build used for test run. (E.g: Release, Debug)"]
    #[serde(
        rename = "buildFlavor",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub build_flavor: Option<String>,
    #[doc = "Platform of the build used for test run. (E.g.: x86, amd64)"]
    #[serde(
        rename = "buildPlatform",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub build_platform: Option<String>,
    #[doc = "BuildConfiguration Details."]
    #[serde(
        rename = "buildReference",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub build_reference: Option<BuildConfiguration>,
    #[doc = "Comments entered by those analyzing the run."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub comment: Option<String>,
    #[doc = "Completed date time of the run."]
    #[serde(
        rename = "completeDate",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub complete_date: Option<String>,
    #[doc = "IDs of the test configurations associated with the run."]
    #[serde(
        rename = "configurationIds",
        default,
        skip_serializing_if = "Vec::is_empty",
        deserialize_with = "crate::serde::deserialize_null_default"
    )]
    pub configuration_ids: Vec<i32>,
    #[doc = "Name of the test controller used for automated run."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub controller: Option<String>,
    #[doc = "Additional properties of test Run."]
    #[serde(
        rename = "customTestFields",
        default,
        skip_serializing_if = "Vec::is_empty",
        deserialize_with = "crate::serde::deserialize_null_default"
    )]
    pub custom_test_fields: Vec<CustomTestField>,
    #[doc = "An abstracted reference to some other resource. This class is used to provide the build data contracts with a uniform way to reference other resources in a way that provides easy traversal through links."]
    #[serde(
        rename = "dtlAutEnvironment",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub dtl_aut_environment: Option<ShallowReference>,
    #[doc = "An abstracted reference to some other resource. This class is used to provide the build data contracts with a uniform way to reference other resources in a way that provides easy traversal through links."]
    #[serde(
        rename = "dtlTestEnvironment",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub dtl_test_environment: Option<ShallowReference>,
    #[doc = "Due date and time for test run."]
    #[serde(rename = "dueDate", default, skip_serializing_if = "Option::is_none")]
    pub due_date: Option<String>,
    #[doc = "This is a temporary class to provide the details for the test run environment."]
    #[serde(
        rename = "environmentDetails",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub environment_details: Option<DtlEnvironmentDetails>,
    #[doc = "Error message associated with the run."]
    #[serde(
        rename = "errorMessage",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub error_message: Option<String>,
    #[doc = "This class is used to provide the filters used for discovery"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub filter: Option<RunFilter>,
    #[doc = "The iteration in which to create the run. Root iteration of the team project will be default"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub iteration: Option<String>,
    #[doc = "Name of the test run."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    #[doc = ""]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub owner: Option<IdentityRef>,
    #[doc = "Pipeline reference"]
    #[serde(
        rename = "pipelineReference",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub pipeline_reference: Option<PipelineReference>,
    #[doc = "An abstracted reference to some other resource. This class is used to provide the build data contracts with a uniform way to reference other resources in a way that provides easy traversal through links."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub plan: Option<ShallowReference>,
    #[doc = "IDs of the test points to use in the run."]
    #[serde(
        rename = "pointIds",
        default,
        skip_serializing_if = "Vec::is_empty",
        deserialize_with = "crate::serde::deserialize_null_default"
    )]
    pub point_ids: Vec<i32>,
    #[doc = "URI of release environment associated with the run."]
    #[serde(
        rename = "releaseEnvironmentUri",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub release_environment_uri: Option<String>,
    #[doc = "Reference to a release."]
    #[serde(
        rename = "releaseReference",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub release_reference: Option<ReleaseReference>,
    #[doc = "URI of release associated with the run."]
    #[serde(
        rename = "releaseUri",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub release_uri: Option<String>,
    #[doc = "Run summary for run Type = NoConfigRun."]
    #[serde(
        rename = "runSummary",
        default,
        skip_serializing_if = "Vec::is_empty",
        deserialize_with = "crate::serde::deserialize_null_default"
    )]
    pub run_summary: Vec<RunSummaryModel>,
    #[doc = "Timespan till the run times out."]
    #[serde(
        rename = "runTimeout",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub run_timeout: Option<String>,
    #[doc = "SourceWorkFlow(CI/CD) of the test run."]
    #[serde(
        rename = "sourceWorkflow",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub source_workflow: Option<String>,
    #[doc = "Start date time of the run."]
    #[serde(rename = "startDate", default, skip_serializing_if = "Option::is_none")]
    pub start_date: Option<String>,
    #[doc = "The state of the run. Type TestRunState Valid states - NotStarted, InProgress, Waiting"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub state: Option<String>,
    #[doc = "Tags to attach with the test run, maximum of 5 tags can be added to run."]
    #[serde(
        default,
        skip_serializing_if = "Vec::is_empty",
        deserialize_with = "crate::serde::deserialize_null_default"
    )]
    pub tags: Vec<TestTag>,
    #[doc = "TestConfigurationMapping of the test run."]
    #[serde(
        rename = "testConfigurationsMapping",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub test_configurations_mapping: Option<String>,
    #[doc = "ID of the test environment associated with the run."]
    #[serde(
        rename = "testEnvironmentId",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub test_environment_id: Option<String>,
    #[doc = "An abstracted reference to some other resource. This class is used to provide the build data contracts with a uniform way to reference other resources in a way that provides easy traversal through links."]
    #[serde(
        rename = "testSettings",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub test_settings: Option<ShallowReference>,
    #[doc = "Type of the run(RunType) Valid Values : (Unspecified, Normal, Blocking, Web, MtrRunInitiatedFromWeb, RunWithDtlEnv, NoConfigRun)"]
    #[serde(rename = "type", default, skip_serializing_if = "Option::is_none")]
    pub type_: Option<String>,
}
impl RunCreateModel {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "This class is used to provide the filters used for discovery"]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct RunFilter {
    #[doc = "filter for the test case sources (test containers)"]
    #[serde(
        rename = "sourceFilter",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub source_filter: Option<String>,
    #[doc = "filter for the test cases"]
    #[serde(
        rename = "testCaseFilter",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub test_case_filter: Option<String>,
}
impl RunFilter {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "Test run statistics per outcome."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct RunStatistic {
    #[doc = "Test result count fo the given outcome."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub count: Option<i32>,
    #[doc = "Test result outcome"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub outcome: Option<String>,
    #[doc = "Test Resolution State Details."]
    #[serde(
        rename = "resolutionState",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub resolution_state: Option<TestResolutionState>,
    #[doc = "ResultMetadata for the given outcome/count."]
    #[serde(
        rename = "resultMetadata",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub result_metadata: Option<run_statistic::ResultMetadata>,
    #[doc = "State of the test run"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub state: Option<String>,
}
impl RunStatistic {
    pub fn new() -> Self {
        Self::default()
    }
}
pub mod run_statistic {
    use super::*;
    #[doc = "ResultMetadata for the given outcome/count."]
    #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
    pub enum ResultMetadata {
        #[serde(rename = "rerun")]
        Rerun,
        #[serde(rename = "flaky")]
        Flaky,
    }
}
#[doc = "Summary of runs for a pipeline instance."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct RunSummary {
    #[doc = "Total time taken by runs with state completed and NeedInvestigation."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub duration: Option<String>,
    #[doc = "NoConfig runs count."]
    #[serde(
        rename = "noConfigRunsCount",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub no_config_runs_count: Option<i32>,
    #[doc = "Runs count by outcome for runs with state completed and NeedInvestigation runs."]
    #[serde(
        rename = "runSummaryByOutcome",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub run_summary_by_outcome: Option<serde_json::Value>,
    #[doc = "Runs count by state."]
    #[serde(
        rename = "runSummaryByState",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub run_summary_by_state: Option<serde_json::Value>,
    #[doc = "Total runs count."]
    #[serde(
        rename = "totalRunsCount",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub total_runs_count: Option<i32>,
}
impl RunSummary {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "Run summary for each output type of test."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct RunSummaryModel {
    #[doc = "Total time taken in milliseconds."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub duration: Option<i64>,
    #[doc = "Number of results for Outcome TestOutcome"]
    #[serde(
        rename = "resultCount",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub result_count: Option<i32>,
    #[doc = "Summary is based on outcome"]
    #[serde(
        rename = "testOutcome",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub test_outcome: Option<run_summary_model::TestOutcome>,
}
impl RunSummaryModel {
    pub fn new() -> Self {
        Self::default()
    }
}
pub mod run_summary_model {
    use super::*;
    #[doc = "Summary is based on outcome"]
    #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
    pub enum TestOutcome {
        #[serde(rename = "unspecified")]
        Unspecified,
        #[serde(rename = "none")]
        None,
        #[serde(rename = "passed")]
        Passed,
        #[serde(rename = "failed")]
        Failed,
        #[serde(rename = "inconclusive")]
        Inconclusive,
        #[serde(rename = "timeout")]
        Timeout,
        #[serde(rename = "aborted")]
        Aborted,
        #[serde(rename = "blocked")]
        Blocked,
        #[serde(rename = "notExecuted")]
        NotExecuted,
        #[serde(rename = "warning")]
        Warning,
        #[serde(rename = "error")]
        Error,
        #[serde(rename = "notApplicable")]
        NotApplicable,
        #[serde(rename = "paused")]
        Paused,
        #[serde(rename = "inProgress")]
        InProgress,
        #[serde(rename = "notImpacted")]
        NotImpacted,
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct RunUpdateModel {
    #[doc = "An abstracted reference to some other resource. This class is used to provide the build data contracts with a uniform way to reference other resources in a way that provides easy traversal through links."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub build: Option<ShallowReference>,
    #[doc = "Drop location of the build used for test run."]
    #[serde(
        rename = "buildDropLocation",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub build_drop_location: Option<String>,
    #[doc = "Flavor of the build used for test run. (E.g: Release, Debug)"]
    #[serde(
        rename = "buildFlavor",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub build_flavor: Option<String>,
    #[doc = "Platform of the build used for test run. (E.g.: x86, amd64)"]
    #[serde(
        rename = "buildPlatform",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub build_platform: Option<String>,
    #[doc = "Comments entered by those analyzing the run."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub comment: Option<String>,
    #[doc = "Completed date time of the run."]
    #[serde(
        rename = "completedDate",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub completed_date: Option<String>,
    #[doc = "Name of the test controller used for automated run."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub controller: Option<String>,
    #[doc = "true to delete inProgess Results , false otherwise."]
    #[serde(
        rename = "deleteInProgressResults",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub delete_in_progress_results: Option<bool>,
    #[doc = "An abstracted reference to some other resource. This class is used to provide the build data contracts with a uniform way to reference other resources in a way that provides easy traversal through links."]
    #[serde(
        rename = "dtlAutEnvironment",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub dtl_aut_environment: Option<ShallowReference>,
    #[doc = "An abstracted reference to some other resource. This class is used to provide the build data contracts with a uniform way to reference other resources in a way that provides easy traversal through links."]
    #[serde(
        rename = "dtlEnvironment",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub dtl_environment: Option<ShallowReference>,
    #[doc = "This is a temporary class to provide the details for the test run environment."]
    #[serde(
        rename = "dtlEnvironmentDetails",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub dtl_environment_details: Option<DtlEnvironmentDetails>,
    #[doc = "Due date and time for test run."]
    #[serde(rename = "dueDate", default, skip_serializing_if = "Option::is_none")]
    pub due_date: Option<String>,
    #[doc = "Error message associated with the run."]
    #[serde(
        rename = "errorMessage",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub error_message: Option<String>,
    #[doc = "The iteration in which to create the run."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub iteration: Option<String>,
    #[doc = "Log entries associated with the run. Use a comma-separated list of multiple log entry objects. { logEntry }, { logEntry }, ..."]
    #[serde(
        rename = "logEntries",
        default,
        skip_serializing_if = "Vec::is_empty",
        deserialize_with = "crate::serde::deserialize_null_default"
    )]
    pub log_entries: Vec<TestMessageLogDetails>,
    #[doc = "Name of the test run."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    #[doc = "URI of release environment associated with the run."]
    #[serde(
        rename = "releaseEnvironmentUri",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub release_environment_uri: Option<String>,
    #[doc = "URI of release associated with the run."]
    #[serde(
        rename = "releaseUri",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub release_uri: Option<String>,
    #[doc = "Run summary for run Type = NoConfigRun."]
    #[serde(
        rename = "runSummary",
        default,
        skip_serializing_if = "Vec::is_empty",
        deserialize_with = "crate::serde::deserialize_null_default"
    )]
    pub run_summary: Vec<RunSummaryModel>,
    #[doc = "SourceWorkFlow(CI/CD) of the test run."]
    #[serde(
        rename = "sourceWorkflow",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub source_workflow: Option<String>,
    #[doc = "Start date time of the run."]
    #[serde(
        rename = "startedDate",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub started_date: Option<String>,
    #[doc = "The state of the test run Below are the valid values - NotStarted, InProgress, Completed, Aborted, Waiting"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub state: Option<String>,
    #[doc = "The types of sub states for test run."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub substate: Option<run_update_model::Substate>,
    #[doc = "Tags to attach with the test run."]
    #[serde(
        default,
        skip_serializing_if = "Vec::is_empty",
        deserialize_with = "crate::serde::deserialize_null_default"
    )]
    pub tags: Vec<TestTag>,
    #[doc = "ID of the test environment associated with the run."]
    #[serde(
        rename = "testEnvironmentId",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub test_environment_id: Option<String>,
    #[doc = "An abstracted reference to some other resource. This class is used to provide the build data contracts with a uniform way to reference other resources in a way that provides easy traversal through links."]
    #[serde(
        rename = "testSettings",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub test_settings: Option<ShallowReference>,
}
impl RunUpdateModel {
    pub fn new() -> Self {
        Self::default()
    }
}
pub mod run_update_model {
    use super::*;
    #[doc = "The types of sub states for test run."]
    #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
    pub enum Substate {
        #[serde(rename = "none")]
        None,
        #[serde(rename = "creatingEnvironment")]
        CreatingEnvironment,
        #[serde(rename = "runningTests")]
        RunningTests,
        #[serde(rename = "canceledByUser")]
        CanceledByUser,
        #[serde(rename = "abortedBySystem")]
        AbortedBySystem,
        #[serde(rename = "timedOut")]
        TimedOut,
        #[serde(rename = "pendingAnalysis")]
        PendingAnalysis,
        #[serde(rename = "analyzed")]
        Analyzed,
        #[serde(rename = "cancellationInProgress")]
        CancellationInProgress,
    }
}
#[doc = "An abstracted reference to some other resource. This class is used to provide the build data contracts with a uniform way to reference other resources in a way that provides easy traversal through links."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct ShallowReference {
    #[doc = "ID of the resource"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub id: Option<String>,
    #[doc = "Name of the linked resource (definition name, controller name, etc.)"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    #[doc = "Full http link to the resource"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub url: Option<String>,
}
impl ShallowReference {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct ShallowTestCaseResult {
    #[serde(
        rename = "automatedTestName",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub automated_test_name: Option<String>,
    #[serde(
        rename = "automatedTestStorage",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub automated_test_storage: Option<String>,
    #[serde(
        rename = "durationInMs",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub duration_in_ms: Option<f64>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub id: Option<i32>,
    #[serde(rename = "isReRun", default, skip_serializing_if = "Option::is_none")]
    pub is_re_run: Option<bool>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub outcome: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub owner: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub priority: Option<i32>,
    #[serde(rename = "refId", default, skip_serializing_if = "Option::is_none")]
    pub ref_id: Option<i32>,
    #[serde(rename = "runId", default, skip_serializing_if = "Option::is_none")]
    pub run_id: Option<i32>,
    #[serde(
        default,
        skip_serializing_if = "Vec::is_empty",
        deserialize_with = "crate::serde::deserialize_null_default"
    )]
    pub tags: Vec<String>,
    #[serde(
        rename = "testCaseTitle",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub test_case_title: Option<String>,
}
impl ShallowTestCaseResult {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "Reference to shared step workitem."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct SharedStepModel {
    #[doc = "WorkItem shared step ID."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub id: Option<i32>,
    #[doc = "Shared step workitem revision."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub revision: Option<i32>,
}
impl SharedStepModel {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "Stage in pipeline"]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct StageReference {
    #[doc = "Attempt number of stage"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub attempt: Option<i32>,
    #[doc = "Name of the stage. Maximum supported length for name is 256 character."]
    #[serde(rename = "stageName", default, skip_serializing_if = "Option::is_none")]
    pub stage_name: Option<String>,
}
impl StageReference {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct TeamProjectReference {
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub abbreviation: Option<String>,
    #[serde(
        rename = "defaultTeamImageUrl",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub default_team_image_url: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub description: Option<String>,
    pub id: String,
    #[serde(rename = "lastUpdateTime", with = "crate::date_time::rfc3339")]
    pub last_update_time: time::OffsetDateTime,
    pub name: String,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub revision: Option<i64>,
    pub state: team_project_reference::State,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub url: Option<String>,
    pub visibility: team_project_reference::Visibility,
}
impl TeamProjectReference {
    pub fn new(
        id: String,
        last_update_time: time::OffsetDateTime,
        name: String,
        state: team_project_reference::State,
        visibility: team_project_reference::Visibility,
    ) -> Self {
        Self {
            abbreviation: None,
            default_team_image_url: None,
            description: None,
            id,
            last_update_time,
            name,
            revision: None,
            state,
            url: None,
            visibility,
        }
    }
}
pub mod team_project_reference {
    use super::*;
    #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
    pub enum State {
        #[serde(rename = "deleting")]
        Deleting,
        #[serde(rename = "new")]
        New,
        #[serde(rename = "wellFormed")]
        WellFormed,
        #[serde(rename = "createPending")]
        CreatePending,
        #[serde(rename = "all")]
        All,
        #[serde(rename = "unchanged")]
        Unchanged,
        #[serde(rename = "deleted")]
        Deleted,
    }
    #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
    pub enum Visibility {
        #[serde(rename = "private")]
        Private,
        #[serde(rename = "public")]
        Public,
        #[serde(rename = "organization")]
        Organization,
        #[serde(rename = "unchanged")]
        Unchanged,
    }
}
#[doc = "Represents a test step result."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct TestActionResultModel {
    #[serde(flatten)]
    pub test_result_model_base: TestResultModelBase,
    #[doc = "Path identifier for test step in test case workitem. Note: 1) It is represented in Hexadecimal format with 8 digits for a step. 2) Internally, the step ID value for first step starts with 2 so actionPath = 00000002 step 9, will have an ID = 10 and actionPath = 0000000a step 15, will have an ID =16 and actionPath = 00000010 3) actionPath of shared step is concatenated with the parent step of test case. Example, it would be something of type -  0000000300000001 where 00000003 denotes action path of test step and 00000001 denotes action path for shared step"]
    #[serde(
        rename = "actionPath",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub action_path: Option<String>,
    #[doc = "Iteration ID of test action result."]
    #[serde(
        rename = "iterationId",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub iteration_id: Option<i32>,
    #[doc = "Reference to shared step workitem."]
    #[serde(
        rename = "sharedStepModel",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub shared_step_model: Option<SharedStepModel>,
    #[doc = "This is step Id of test case. For shared step, it is step Id of shared step in test case workitem; step Id in shared step. Example: TestCase workitem has two steps: 1) Normal step with Id = 1 2) Shared Step with Id = 2. Inside shared step: a) Normal Step with Id = 1 Value for StepIdentifier for First step: \"1\" Second step: \"2;1\""]
    #[serde(
        rename = "stepIdentifier",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub step_identifier: Option<String>,
    #[doc = "Url of test action result. Deprecated in hosted environment."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub url: Option<String>,
}
impl TestActionResultModel {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct TestAttachment {
    #[doc = "Attachment type."]
    #[serde(
        rename = "attachmentType",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub attachment_type: Option<test_attachment::AttachmentType>,
    #[doc = "Comment associated with attachment."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub comment: Option<String>,
    #[doc = "Attachment created date."]
    #[serde(
        rename = "createdDate",
        default,
        skip_serializing_if = "Option::is_none",
        with = "crate::date_time::rfc3339::option"
    )]
    pub created_date: Option<time::OffsetDateTime>,
    #[doc = "Attachment file name"]
    #[serde(rename = "fileName", default, skip_serializing_if = "Option::is_none")]
    pub file_name: Option<String>,
    #[doc = "ID of the attachment."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub id: Option<i32>,
    #[doc = "Attachment size."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub size: Option<i64>,
    #[doc = "Attachment Url."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub url: Option<String>,
}
impl TestAttachment {
    pub fn new() -> Self {
        Self::default()
    }
}
pub mod test_attachment {
    use super::*;
    #[doc = "Attachment type."]
    #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
    pub enum AttachmentType {
        #[serde(rename = "generalAttachment")]
        GeneralAttachment,
        #[serde(rename = "codeCoverage")]
        CodeCoverage,
        #[serde(rename = "consoleLog")]
        ConsoleLog,
    }
}
#[doc = "Reference to test attachment."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct TestAttachmentReference {
    #[doc = "ID of the attachment."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub id: Option<i32>,
    #[doc = "Url to download the attachment."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub url: Option<String>,
}
impl TestAttachmentReference {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "Test attachment request model"]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct TestAttachmentRequestModel {
    #[doc = "Attachment type By Default it will be GeneralAttachment. It can be one of the following type. { GeneralAttachment, AfnStrip, BugFilingData, CodeCoverage, IntermediateCollectorData, RunConfig, TestImpactDetails, TmiTestRunDeploymentFiles, TmiTestRunReverseDeploymentFiles, TmiTestResultDetail, TmiTestRunSummary }"]
    #[serde(
        rename = "attachmentType",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub attachment_type: Option<String>,
    #[doc = "Comment associated with attachment"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub comment: Option<String>,
    #[doc = "Attachment filename"]
    #[serde(rename = "fileName", default, skip_serializing_if = "Option::is_none")]
    pub file_name: Option<String>,
    #[doc = "Base64 encoded file stream"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub stream: Option<String>,
}
impl TestAttachmentRequestModel {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "Represents a test result."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct TestCaseResult {
    #[doc = "Test attachment ID of action recording."]
    #[serde(
        rename = "afnStripId",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub afn_strip_id: Option<i32>,
    #[doc = "An abstracted reference to some other resource. This class is used to provide the build data contracts with a uniform way to reference other resources in a way that provides easy traversal through links."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub area: Option<ShallowReference>,
    #[doc = "Reference to bugs linked to test result."]
    #[serde(
        rename = "associatedBugs",
        default,
        skip_serializing_if = "Vec::is_empty",
        deserialize_with = "crate::serde::deserialize_null_default"
    )]
    pub associated_bugs: Vec<ShallowReference>,
    #[doc = "ID representing test method in a dll."]
    #[serde(
        rename = "automatedTestId",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub automated_test_id: Option<String>,
    #[doc = "Fully qualified name of test executed."]
    #[serde(
        rename = "automatedTestName",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub automated_test_name: Option<String>,
    #[doc = "Container to which test belongs."]
    #[serde(
        rename = "automatedTestStorage",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub automated_test_storage: Option<String>,
    #[doc = "Type of automated test."]
    #[serde(
        rename = "automatedTestType",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub automated_test_type: Option<String>,
    #[doc = "TypeId of automated test."]
    #[serde(
        rename = "automatedTestTypeId",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub automated_test_type_id: Option<String>,
    #[doc = "An abstracted reference to some other resource. This class is used to provide the build data contracts with a uniform way to reference other resources in a way that provides easy traversal through links."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub build: Option<ShallowReference>,
    #[doc = "Reference to a build."]
    #[serde(
        rename = "buildReference",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub build_reference: Option<BuildReference>,
    #[doc = "Comment in a test result with maxSize= 1000 chars."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub comment: Option<String>,
    #[doc = "Time when test execution completed(UTC). Completed date should be greater than StartedDate."]
    #[serde(
        rename = "completedDate",
        default,
        skip_serializing_if = "Option::is_none",
        with = "crate::date_time::rfc3339::option"
    )]
    pub completed_date: Option<time::OffsetDateTime>,
    #[doc = "Machine name where test executed."]
    #[serde(
        rename = "computerName",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub computer_name: Option<String>,
    #[doc = "An abstracted reference to some other resource. This class is used to provide the build data contracts with a uniform way to reference other resources in a way that provides easy traversal through links."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub configuration: Option<ShallowReference>,
    #[doc = "Timestamp when test result created(UTC)."]
    #[serde(
        rename = "createdDate",
        default,
        skip_serializing_if = "Option::is_none",
        with = "crate::date_time::rfc3339::option"
    )]
    pub created_date: Option<time::OffsetDateTime>,
    #[doc = "Additional properties of test result."]
    #[serde(
        rename = "customFields",
        default,
        skip_serializing_if = "Vec::is_empty",
        deserialize_with = "crate::serde::deserialize_null_default"
    )]
    pub custom_fields: Vec<CustomTestField>,
    #[doc = "Duration of test execution in milliseconds. If not provided value will be set as CompletedDate - StartedDate"]
    #[serde(
        rename = "durationInMs",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub duration_in_ms: Option<f64>,
    #[doc = "Error message in test execution."]
    #[serde(
        rename = "errorMessage",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub error_message: Option<String>,
    #[doc = "Failing since information of a test result."]
    #[serde(
        rename = "failingSince",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub failing_since: Option<FailingSince>,
    #[doc = "Failure type of test result. Valid Value= (Known Issue, New Issue, Regression, Unknown, None)"]
    #[serde(
        rename = "failureType",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub failure_type: Option<String>,
    #[doc = "ID of a test result."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub id: Option<i32>,
    #[doc = "Test result details of test iterations used only for Manual Testing."]
    #[serde(
        rename = "iterationDetails",
        default,
        skip_serializing_if = "Vec::is_empty",
        deserialize_with = "crate::serde::deserialize_null_default"
    )]
    pub iteration_details: Vec<TestIterationDetailsModel>,
    #[doc = ""]
    #[serde(
        rename = "lastUpdatedBy",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub last_updated_by: Option<IdentityRef>,
    #[doc = "Last updated datetime of test result(UTC)."]
    #[serde(
        rename = "lastUpdatedDate",
        default,
        skip_serializing_if = "Option::is_none",
        with = "crate::date_time::rfc3339::option"
    )]
    pub last_updated_date: Option<time::OffsetDateTime>,
    #[doc = "Test outcome of test result. Valid values = (Unspecified, None, Passed, Failed, Inconclusive, Timeout, Aborted, Blocked, NotExecuted, Warning, Error, NotApplicable, Paused, InProgress, NotImpacted)"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub outcome: Option<String>,
    #[doc = ""]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub owner: Option<IdentityRef>,
    #[doc = "Priority of test executed."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub priority: Option<i32>,
    #[doc = "An abstracted reference to some other resource. This class is used to provide the build data contracts with a uniform way to reference other resources in a way that provides easy traversal through links."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub project: Option<ShallowReference>,
    #[doc = "An abstracted reference to some other resource. This class is used to provide the build data contracts with a uniform way to reference other resources in a way that provides easy traversal through links."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub release: Option<ShallowReference>,
    #[doc = "Reference to a release."]
    #[serde(
        rename = "releaseReference",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub release_reference: Option<ReleaseReference>,
    #[doc = "ResetCount."]
    #[serde(
        rename = "resetCount",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub reset_count: Option<i32>,
    #[doc = "Resolution state of test result."]
    #[serde(
        rename = "resolutionState",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub resolution_state: Option<String>,
    #[doc = "ID of resolution state."]
    #[serde(
        rename = "resolutionStateId",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub resolution_state_id: Option<i32>,
    #[doc = "Hierarchy type of the result, default value of None means its leaf node."]
    #[serde(
        rename = "resultGroupType",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub result_group_type: Option<test_case_result::ResultGroupType>,
    #[doc = "Revision number of test result."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub revision: Option<i32>,
    #[doc = ""]
    #[serde(rename = "runBy", default, skip_serializing_if = "Option::is_none")]
    pub run_by: Option<IdentityRef>,
    #[doc = "Stacktrace with maxSize= 1000 chars."]
    #[serde(
        rename = "stackTrace",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub stack_trace: Option<String>,
    #[doc = "Time when test execution started(UTC)."]
    #[serde(
        rename = "startedDate",
        default,
        skip_serializing_if = "Option::is_none",
        with = "crate::date_time::rfc3339::option"
    )]
    pub started_date: Option<time::OffsetDateTime>,
    #[doc = "State of test result. Type TestRunState."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub state: Option<String>,
    #[doc = "List of sub results inside a test result, if ResultGroupType is not None, it holds corresponding type sub results."]
    #[serde(
        rename = "subResults",
        default,
        skip_serializing_if = "Vec::is_empty",
        deserialize_with = "crate::serde::deserialize_null_default"
    )]
    pub sub_results: Vec<TestSubResult>,
    #[doc = "An abstracted reference to some other resource. This class is used to provide the build data contracts with a uniform way to reference other resources in a way that provides easy traversal through links."]
    #[serde(rename = "testCase", default, skip_serializing_if = "Option::is_none")]
    pub test_case: Option<ShallowReference>,
    #[doc = "Reference ID of test used by test result. Type TestResultMetaData"]
    #[serde(
        rename = "testCaseReferenceId",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub test_case_reference_id: Option<i32>,
    #[doc = "TestCaseRevision Number."]
    #[serde(
        rename = "testCaseRevision",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub test_case_revision: Option<i32>,
    #[doc = "Name of test."]
    #[serde(
        rename = "testCaseTitle",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub test_case_title: Option<String>,
    #[doc = "An abstracted reference to some other resource. This class is used to provide the build data contracts with a uniform way to reference other resources in a way that provides easy traversal through links."]
    #[serde(rename = "testPlan", default, skip_serializing_if = "Option::is_none")]
    pub test_plan: Option<ShallowReference>,
    #[doc = "An abstracted reference to some other resource. This class is used to provide the build data contracts with a uniform way to reference other resources in a way that provides easy traversal through links."]
    #[serde(rename = "testPoint", default, skip_serializing_if = "Option::is_none")]
    pub test_point: Option<ShallowReference>,
    #[doc = "An abstracted reference to some other resource. This class is used to provide the build data contracts with a uniform way to reference other resources in a way that provides easy traversal through links."]
    #[serde(rename = "testRun", default, skip_serializing_if = "Option::is_none")]
    pub test_run: Option<ShallowReference>,
    #[doc = "An abstracted reference to some other resource. This class is used to provide the build data contracts with a uniform way to reference other resources in a way that provides easy traversal through links."]
    #[serde(rename = "testSuite", default, skip_serializing_if = "Option::is_none")]
    pub test_suite: Option<ShallowReference>,
    #[doc = "Url of test result."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub url: Option<String>,
}
impl TestCaseResult {
    pub fn new() -> Self {
        Self::default()
    }
}
pub mod test_case_result {
    use super::*;
    #[doc = "Hierarchy type of the result, default value of None means its leaf node."]
    #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
    pub enum ResultGroupType {
        #[serde(rename = "none")]
        None,
        #[serde(rename = "rerun")]
        Rerun,
        #[serde(rename = "dataDriven")]
        DataDriven,
        #[serde(rename = "orderedTest")]
        OrderedTest,
        #[serde(rename = "generic")]
        Generic,
    }
}
#[doc = "Test attachment information in a test iteration."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct TestCaseResultAttachmentModel {
    #[doc = "Path identifier test step in test case workitem."]
    #[serde(
        rename = "actionPath",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub action_path: Option<String>,
    #[doc = "Attachment ID."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub id: Option<i32>,
    #[doc = "Iteration ID."]
    #[serde(
        rename = "iterationId",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub iteration_id: Option<i32>,
    #[doc = "Name of attachment."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    #[doc = "Attachment size."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub size: Option<i64>,
    #[doc = "Url to attachment."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub url: Option<String>,
}
impl TestCaseResultAttachmentModel {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "Reference to a test result."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct TestCaseResultIdentifier {
    #[doc = "Test result ID."]
    #[serde(
        rename = "testResultId",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub test_result_id: Option<i32>,
    #[doc = "Test run ID."]
    #[serde(rename = "testRunId", default, skip_serializing_if = "Option::is_none")]
    pub test_run_id: Option<i32>,
}
impl TestCaseResultIdentifier {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "Test environment Detail."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct TestEnvironment {
    #[doc = "Test Environment Id."]
    #[serde(
        rename = "environmentId",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub environment_id: Option<String>,
    #[doc = "Test Environment Name."]
    #[serde(
        rename = "environmentName",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub environment_name: Option<String>,
}
impl TestEnvironment {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct TestFailureDetails {
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub count: Option<i32>,
    #[serde(
        rename = "testResults",
        default,
        skip_serializing_if = "Vec::is_empty",
        deserialize_with = "crate::serde::deserialize_null_default"
    )]
    pub test_results: Vec<TestCaseResultIdentifier>,
}
impl TestFailureDetails {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct TestFailuresAnalysis {
    #[doc = ""]
    #[serde(
        rename = "existingFailures",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub existing_failures: Option<TestFailureDetails>,
    #[doc = ""]
    #[serde(
        rename = "fixedTests",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub fixed_tests: Option<TestFailureDetails>,
    #[doc = ""]
    #[serde(
        rename = "newFailures",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub new_failures: Option<TestFailureDetails>,
    #[doc = ""]
    #[serde(
        rename = "previousContext",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub previous_context: Option<TestResultsContext>,
}
impl TestFailuresAnalysis {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "Test Flaky Identifier"]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct TestFlakyIdentifier {
    #[doc = "Branch Name where Flakiness has to be Marked/Unmarked"]
    #[serde(
        rename = "branchName",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub branch_name: Option<String>,
    #[doc = "State for Flakiness"]
    #[serde(rename = "isFlaky", default, skip_serializing_if = "Option::is_none")]
    pub is_flaky: Option<bool>,
}
impl TestFlakyIdentifier {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "Filter to get TestCase result history."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct TestHistoryQuery {
    #[doc = "Automated test name of the TestCase."]
    #[serde(
        rename = "automatedTestName",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub automated_test_name: Option<String>,
    #[doc = "Results to be get for a particular branches."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub branch: Option<String>,
    #[doc = "Get the results history only for this BuildDefinitionId. This to get used in query GroupBy should be Branch. If this is provided, Branch will have no use."]
    #[serde(
        rename = "buildDefinitionId",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub build_definition_id: Option<i32>,
    #[doc = "It will be filled by server. If not null means there are some results still to be get, and we need to call this REST API with this ContinuousToken. It is not supposed to be created (or altered, if received from server in last batch) by user."]
    #[serde(
        rename = "continuationToken",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub continuation_token: Option<String>,
    #[doc = "Group the result on the basis of TestResultGroupBy. This can be Branch, Environment or null(if results are fetched by BuildDefinitionId)"]
    #[serde(rename = "groupBy", default, skip_serializing_if = "Option::is_none")]
    pub group_by: Option<test_history_query::GroupBy>,
    #[doc = "History to get between time interval MaxCompleteDate and  (MaxCompleteDate - TrendDays). Default is current date time."]
    #[serde(
        rename = "maxCompleteDate",
        default,
        skip_serializing_if = "Option::is_none",
        with = "crate::date_time::rfc3339::option"
    )]
    pub max_complete_date: Option<time::OffsetDateTime>,
    #[doc = "Get the results history only for this ReleaseEnvDefinitionId. This to get used in query GroupBy should be Environment."]
    #[serde(
        rename = "releaseEnvDefinitionId",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub release_env_definition_id: Option<i32>,
    #[doc = "List of TestResultHistoryForGroup which are grouped by GroupBy"]
    #[serde(
        rename = "resultsForGroup",
        default,
        skip_serializing_if = "Vec::is_empty",
        deserialize_with = "crate::serde::deserialize_null_default"
    )]
    pub results_for_group: Vec<TestResultHistoryForGroup>,
    #[doc = "Get the results history only for this testCaseId. This to get used in query to filter the result along with automatedtestname"]
    #[serde(
        rename = "testCaseId",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub test_case_id: Option<i32>,
    #[doc = "Number of days for which history to collect. Maximum supported value is 7 days. Default is 7 days."]
    #[serde(rename = "trendDays", default, skip_serializing_if = "Option::is_none")]
    pub trend_days: Option<i32>,
}
impl TestHistoryQuery {
    pub fn new() -> Self {
        Self::default()
    }
}
pub mod test_history_query {
    use super::*;
    #[doc = "Group the result on the basis of TestResultGroupBy. This can be Branch, Environment or null(if results are fetched by BuildDefinitionId)"]
    #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
    pub enum GroupBy {
        #[serde(rename = "branch")]
        Branch,
        #[serde(rename = "environment")]
        Environment,
    }
}
#[doc = "Represents a test iteration result."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct TestIterationDetailsModel {
    #[doc = "Test step results in an iteration."]
    #[serde(
        rename = "actionResults",
        default,
        skip_serializing_if = "Vec::is_empty",
        deserialize_with = "crate::serde::deserialize_null_default"
    )]
    pub action_results: Vec<TestActionResultModel>,
    #[doc = "Reference to attachments in test iteration result."]
    #[serde(
        default,
        skip_serializing_if = "Vec::is_empty",
        deserialize_with = "crate::serde::deserialize_null_default"
    )]
    pub attachments: Vec<TestCaseResultAttachmentModel>,
    #[doc = "Comment in test iteration result."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub comment: Option<String>,
    #[doc = "Time when execution completed(UTC)."]
    #[serde(
        rename = "completedDate",
        default,
        skip_serializing_if = "Option::is_none",
        with = "crate::date_time::rfc3339::option"
    )]
    pub completed_date: Option<time::OffsetDateTime>,
    #[doc = "Duration of execution."]
    #[serde(
        rename = "durationInMs",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub duration_in_ms: Option<f64>,
    #[doc = "Error message in test iteration result execution."]
    #[serde(
        rename = "errorMessage",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub error_message: Option<String>,
    #[doc = "ID of test iteration result."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub id: Option<i32>,
    #[doc = "Test outcome if test iteration result."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub outcome: Option<String>,
    #[doc = "Test parameters in an iteration."]
    #[serde(
        default,
        skip_serializing_if = "Vec::is_empty",
        deserialize_with = "crate::serde::deserialize_null_default"
    )]
    pub parameters: Vec<TestResultParameterModel>,
    #[doc = "Time when execution started(UTC)."]
    #[serde(
        rename = "startedDate",
        default,
        skip_serializing_if = "Option::is_none",
        with = "crate::date_time::rfc3339::option"
    )]
    pub started_date: Option<time::OffsetDateTime>,
    #[doc = "Url to test iteration result."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub url: Option<String>,
}
impl TestIterationDetailsModel {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "Represents Test Log Result object."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct TestLog {
    #[doc = "Test Log Reference object"]
    #[serde(
        rename = "logReference",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub log_reference: Option<TestLogReference>,
    #[doc = "Meta data for Log file"]
    #[serde(rename = "metaData", default, skip_serializing_if = "Option::is_none")]
    pub meta_data: Option<serde_json::Value>,
    #[doc = "LastUpdatedDate for Log file"]
    #[serde(
        rename = "modifiedOn",
        default,
        skip_serializing_if = "Option::is_none",
        with = "crate::date_time::rfc3339::option"
    )]
    pub modified_on: Option<time::OffsetDateTime>,
    #[doc = "Size in Bytes for Log file"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub size: Option<i64>,
}
impl TestLog {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct TestLogList {
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub count: Option<i32>,
    #[serde(
        default,
        skip_serializing_if = "Vec::is_empty",
        deserialize_with = "crate::serde::deserialize_null_default"
    )]
    pub value: Vec<TestLog>,
}
impl TestLogList {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "Test Log Reference object"]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct TestLogReference {
    #[doc = "BuildId for test log, if context is build"]
    #[serde(rename = "buildId", default, skip_serializing_if = "Option::is_none")]
    pub build_id: Option<i32>,
    #[doc = "FileName for log file"]
    #[serde(rename = "filePath", default, skip_serializing_if = "Option::is_none")]
    pub file_path: Option<String>,
    #[doc = "ReleaseEnvId for test log, if context is Release"]
    #[serde(
        rename = "releaseEnvId",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub release_env_id: Option<i32>,
    #[doc = "ReleaseId for test log, if context is Release"]
    #[serde(rename = "releaseId", default, skip_serializing_if = "Option::is_none")]
    pub release_id: Option<i32>,
    #[doc = "Resultid for test log, if context is run and log is related to result"]
    #[serde(rename = "resultId", default, skip_serializing_if = "Option::is_none")]
    pub result_id: Option<i32>,
    #[doc = "runid for test log, if context is run"]
    #[serde(rename = "runId", default, skip_serializing_if = "Option::is_none")]
    pub run_id: Option<i32>,
    #[doc = "Test Log Scope"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub scope: Option<test_log_reference::Scope>,
    #[doc = "SubResultid for test log, if context is run and log is related to subresult"]
    #[serde(
        rename = "subResultId",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub sub_result_id: Option<i32>,
    #[doc = "Log Type"]
    #[serde(rename = "type", default, skip_serializing_if = "Option::is_none")]
    pub type_: Option<test_log_reference::Type>,
}
impl TestLogReference {
    pub fn new() -> Self {
        Self::default()
    }
}
pub mod test_log_reference {
    use super::*;
    #[doc = "Test Log Scope"]
    #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
    pub enum Scope {
        #[serde(rename = "run")]
        Run,
    }
    #[doc = "Log Type"]
    #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
    pub enum Type {
        #[serde(rename = "generalAttachment")]
        GeneralAttachment,
    }
}
#[doc = "Attachment metadata for test attachments from LogStore."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct TestLogStoreAttachment {
    #[doc = "Attachment type."]
    #[serde(
        rename = "attachmentType",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub attachment_type: Option<test_log_store_attachment::AttachmentType>,
    #[doc = "Comment associated with attachment."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub comment: Option<String>,
    #[doc = "Attachment created date."]
    #[serde(
        rename = "createdDate",
        default,
        skip_serializing_if = "Option::is_none",
        with = "crate::date_time::rfc3339::option"
    )]
    pub created_date: Option<time::OffsetDateTime>,
    #[doc = "Attachment file name."]
    #[serde(rename = "fileName", default, skip_serializing_if = "Option::is_none")]
    pub file_name: Option<String>,
    #[doc = "Attachment size."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub size: Option<i64>,
    #[doc = "Attachment Url."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub url: Option<String>,
}
impl TestLogStoreAttachment {
    pub fn new() -> Self {
        Self::default()
    }
}
pub mod test_log_store_attachment {
    use super::*;
    #[doc = "Attachment type."]
    #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
    pub enum AttachmentType {
        #[serde(rename = "generalAttachment")]
        GeneralAttachment,
        #[serde(rename = "codeCoverage")]
        CodeCoverage,
        #[serde(rename = "consoleLog")]
        ConsoleLog,
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct TestLogStoreAttachmentList {
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub count: Option<i32>,
    #[serde(
        default,
        skip_serializing_if = "Vec::is_empty",
        deserialize_with = "crate::serde::deserialize_null_default"
    )]
    pub value: Vec<TestLogStoreAttachment>,
}
impl TestLogStoreAttachmentList {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "Reference to test attachment."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct TestLogStoreAttachmentReference {
    #[doc = "Url to download the attachment."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub url: Option<String>,
}
impl TestLogStoreAttachmentReference {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "Represents Test Log store endpoint details."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct TestLogStoreEndpointDetails {
    #[doc = "Test log store connection Uri."]
    #[serde(
        rename = "endpointSASUri",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub endpoint_sas_uri: Option<String>,
    #[doc = "Test log store endpoint type."]
    #[serde(
        rename = "endpointType",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub endpoint_type: Option<test_log_store_endpoint_details::EndpointType>,
    #[doc = "Test log store status code"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub status: Option<test_log_store_endpoint_details::Status>,
}
impl TestLogStoreEndpointDetails {
    pub fn new() -> Self {
        Self::default()
    }
}
pub mod test_log_store_endpoint_details {
    use super::*;
    #[doc = "Test log store endpoint type."]
    #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
    pub enum EndpointType {
        #[serde(rename = "root")]
        Root,
        #[serde(rename = "file")]
        File,
    }
    #[doc = "Test log store status code"]
    #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
    pub enum Status {
        #[serde(rename = "success")]
        Success,
        #[serde(rename = "failed")]
        Failed,
        #[serde(rename = "fileAlreadyExists")]
        FileAlreadyExists,
        #[serde(rename = "invalidInput")]
        InvalidInput,
        #[serde(rename = "invalidFileName")]
        InvalidFileName,
        #[serde(rename = "invalidContainer")]
        InvalidContainer,
        #[serde(rename = "transferFailed")]
        TransferFailed,
        #[serde(rename = "featureDisabled")]
        FeatureDisabled,
        #[serde(rename = "buildDoesNotExist")]
        BuildDoesNotExist,
        #[serde(rename = "runDoesNotExist")]
        RunDoesNotExist,
        #[serde(rename = "containerNotCreated")]
        ContainerNotCreated,
        #[serde(rename = "apiNotSupported")]
        ApiNotSupported,
        #[serde(rename = "fileSizeExceeds")]
        FileSizeExceeds,
        #[serde(rename = "containerNotFound")]
        ContainerNotFound,
        #[serde(rename = "fileNotFound")]
        FileNotFound,
        #[serde(rename = "directoryNotFound")]
        DirectoryNotFound,
        #[serde(rename = "storageCapacityExceeded")]
        StorageCapacityExceeded,
    }
}
#[doc = "An abstracted reference to some other resource. This class is used to provide the build data contracts with a uniform way to reference other resources in a way that provides easy traversal through links."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct TestMessageLogDetails {
    #[doc = "Date when the resource is created"]
    #[serde(
        rename = "dateCreated",
        default,
        skip_serializing_if = "Option::is_none",
        with = "crate::date_time::rfc3339::option"
    )]
    pub date_created: Option<time::OffsetDateTime>,
    #[doc = "Id of the resource"]
    #[serde(rename = "entryId", default, skip_serializing_if = "Option::is_none")]
    pub entry_id: Option<i32>,
    #[doc = "Message of the resource"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub message: Option<String>,
}
impl TestMessageLogDetails {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct TestMethod {
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub container: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
}
impl TestMethod {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "Class representing a reference to an operation."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct TestOperationReference {
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub id: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub status: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub url: Option<String>,
}
impl TestOperationReference {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "Test Resolution State Details."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct TestResolutionState {
    #[doc = "Test Resolution state Id."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub id: Option<i32>,
    #[doc = "Test Resolution State Name."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    #[doc = "An abstracted reference to some other resource. This class is used to provide the build data contracts with a uniform way to reference other resources in a way that provides easy traversal through links."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub project: Option<ShallowReference>,
}
impl TestResolutionState {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct TestResultDocument {
    #[doc = "Class representing a reference to an operation."]
    #[serde(
        rename = "operationReference",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub operation_reference: Option<TestOperationReference>,
    #[doc = ""]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub payload: Option<TestResultPayload>,
}
impl TestResultDocument {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "The test failure type resource"]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct TestResultFailureType {
    #[doc = "ID of the test failure type"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub id: Option<i32>,
    #[doc = "Name of the test failure type"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
}
impl TestResultFailureType {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct TestResultFailureTypeList {
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub count: Option<i32>,
    #[serde(
        default,
        skip_serializing_if = "Vec::is_empty",
        deserialize_with = "crate::serde::deserialize_null_default"
    )]
    pub value: Vec<TestResultFailureType>,
}
impl TestResultFailureTypeList {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "The test failure type request model"]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct TestResultFailureTypeRequestModel {
    #[doc = "Name of the test failure type"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
}
impl TestResultFailureTypeRequestModel {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct TestResultFailuresAnalysis {
    #[doc = ""]
    #[serde(
        rename = "existingFailures",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub existing_failures: Option<TestFailureDetails>,
    #[doc = ""]
    #[serde(
        rename = "fixedTests",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub fixed_tests: Option<TestFailureDetails>,
    #[doc = ""]
    #[serde(
        rename = "newFailures",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub new_failures: Option<TestFailureDetails>,
}
impl TestResultFailuresAnalysis {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct TestResultHistory {
    #[serde(
        rename = "groupByField",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub group_by_field: Option<String>,
    #[serde(
        rename = "resultsForGroup",
        default,
        skip_serializing_if = "Vec::is_empty",
        deserialize_with = "crate::serde::deserialize_null_default"
    )]
    pub results_for_group: Vec<TestResultHistoryDetailsForGroup>,
}
impl TestResultHistory {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct TestResultHistoryDetailsForGroup {
    #[serde(
        rename = "groupByValue",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub group_by_value: Option<serde_json::Value>,
    #[doc = "Represents a test result."]
    #[serde(
        rename = "latestResult",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub latest_result: Option<TestCaseResult>,
}
impl TestResultHistoryDetailsForGroup {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "List of test results filtered on the basis of GroupByValue"]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct TestResultHistoryForGroup {
    #[doc = "Display name of the group."]
    #[serde(
        rename = "displayName",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub display_name: Option<String>,
    #[doc = "Name or Id of the group identifier by which results are grouped together."]
    #[serde(
        rename = "groupByValue",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub group_by_value: Option<String>,
    #[doc = "List of results for GroupByValue"]
    #[serde(
        default,
        skip_serializing_if = "Vec::is_empty",
        deserialize_with = "crate::serde::deserialize_null_default"
    )]
    pub results: Vec<TestCaseResult>,
}
impl TestResultHistoryForGroup {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "Represents a Meta Data of a test result."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct TestResultMetaData {
    #[doc = "AutomatedTestName of test result."]
    #[serde(
        rename = "automatedTestName",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub automated_test_name: Option<String>,
    #[doc = "AutomatedTestStorage of test result."]
    #[serde(
        rename = "automatedTestStorage",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub automated_test_storage: Option<String>,
    #[doc = "List of Flaky Identifier for TestCaseReferenceId"]
    #[serde(
        rename = "flakyIdentifiers",
        default,
        skip_serializing_if = "Vec::is_empty",
        deserialize_with = "crate::serde::deserialize_null_default"
    )]
    pub flaky_identifiers: Vec<TestFlakyIdentifier>,
    #[doc = "Owner of test result."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub owner: Option<String>,
    #[doc = "Priority of test result."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub priority: Option<i32>,
    #[doc = "ID of TestCaseReference."]
    #[serde(
        rename = "testCaseReferenceId",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub test_case_reference_id: Option<i32>,
    #[doc = "TestCaseTitle of test result."]
    #[serde(
        rename = "testCaseTitle",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub test_case_title: Option<String>,
}
impl TestResultMetaData {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct TestResultMetaDataList {
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub count: Option<i32>,
    #[serde(
        default,
        skip_serializing_if = "Vec::is_empty",
        deserialize_with = "crate::serde::deserialize_null_default"
    )]
    pub value: Vec<TestResultMetaData>,
}
impl TestResultMetaDataList {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "Represents a TestResultMetaData Input"]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct TestResultMetaDataUpdateInput {
    #[doc = "List of Flaky Identifiers"]
    #[serde(
        rename = "flakyIdentifiers",
        default,
        skip_serializing_if = "Vec::is_empty",
        deserialize_with = "crate::serde::deserialize_null_default"
    )]
    pub flaky_identifiers: Vec<TestFlakyIdentifier>,
}
impl TestResultMetaDataUpdateInput {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct TestResultModelBase {
    #[doc = "Comment in result."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub comment: Option<String>,
    #[doc = "Time when execution completed(UTC)."]
    #[serde(
        rename = "completedDate",
        default,
        skip_serializing_if = "Option::is_none",
        with = "crate::date_time::rfc3339::option"
    )]
    pub completed_date: Option<time::OffsetDateTime>,
    #[doc = "Duration of execution."]
    #[serde(
        rename = "durationInMs",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub duration_in_ms: Option<f64>,
    #[doc = "Error message in result."]
    #[serde(
        rename = "errorMessage",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub error_message: Option<String>,
    #[doc = "Test outcome of result."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub outcome: Option<String>,
    #[doc = "Time when execution started(UTC)."]
    #[serde(
        rename = "startedDate",
        default,
        skip_serializing_if = "Option::is_none",
        with = "crate::date_time::rfc3339::option"
    )]
    pub started_date: Option<time::OffsetDateTime>,
}
impl TestResultModelBase {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "Test parameter information in a test iteration."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct TestResultParameterModel {
    #[doc = "Test step path where parameter is referenced."]
    #[serde(
        rename = "actionPath",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub action_path: Option<String>,
    #[doc = "Iteration ID."]
    #[serde(
        rename = "iterationId",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub iteration_id: Option<i32>,
    #[doc = "Name of parameter."]
    #[serde(
        rename = "parameterName",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub parameter_name: Option<String>,
    #[doc = "This is step Id of test case. For shared step, it is step Id of shared step in test case workitem; step Id in shared step. Example: TestCase workitem has two steps: 1) Normal step with Id = 1 2) Shared Step with Id = 2. Inside shared step: a) Normal Step with Id = 1 Value for StepIdentifier for First step: \"1\" Second step: \"2;1\""]
    #[serde(
        rename = "stepIdentifier",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub step_identifier: Option<String>,
    #[doc = "Url of test parameter. Deprecated in hosted environment."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub url: Option<String>,
    #[doc = "Value of parameter."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub value: Option<String>,
}
impl TestResultParameterModel {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct TestResultPayload {
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub comment: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub stream: Option<String>,
}
impl TestResultPayload {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct TestResultSummary {
    #[doc = ""]
    #[serde(
        rename = "aggregatedResultsAnalysis",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub aggregated_results_analysis: Option<AggregatedResultsAnalysis>,
    #[serde(
        rename = "noConfigRunsCount",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub no_config_runs_count: Option<i32>,
    #[doc = ""]
    #[serde(
        rename = "teamProject",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub team_project: Option<TeamProjectReference>,
    #[doc = ""]
    #[serde(
        rename = "testFailures",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub test_failures: Option<TestFailuresAnalysis>,
    #[doc = ""]
    #[serde(
        rename = "testResultsContext",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub test_results_context: Option<TestResultsContext>,
    #[serde(
        rename = "totalRunsCount",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub total_runs_count: Option<i32>,
}
impl TestResultSummary {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct TestResultTrendFilter {
    #[serde(
        rename = "branchNames",
        default,
        skip_serializing_if = "Vec::is_empty",
        deserialize_with = "crate::serde::deserialize_null_default"
    )]
    pub branch_names: Vec<String>,
    #[serde(
        rename = "buildCount",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub build_count: Option<i32>,
    #[serde(
        rename = "definitionIds",
        default,
        skip_serializing_if = "Vec::is_empty",
        deserialize_with = "crate::serde::deserialize_null_default"
    )]
    pub definition_ids: Vec<i32>,
    #[serde(
        rename = "envDefinitionIds",
        default,
        skip_serializing_if = "Vec::is_empty",
        deserialize_with = "crate::serde::deserialize_null_default"
    )]
    pub env_definition_ids: Vec<i32>,
    #[serde(
        rename = "maxCompleteDate",
        default,
        skip_serializing_if = "Option::is_none",
        with = "crate::date_time::rfc3339::option"
    )]
    pub max_complete_date: Option<time::OffsetDateTime>,
    #[serde(
        rename = "publishContext",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub publish_context: Option<String>,
    #[serde(
        rename = "testRunTitles",
        default,
        skip_serializing_if = "Vec::is_empty",
        deserialize_with = "crate::serde::deserialize_null_default"
    )]
    pub test_run_titles: Vec<String>,
    #[serde(rename = "trendDays", default, skip_serializing_if = "Option::is_none")]
    pub trend_days: Option<i32>,
}
impl TestResultTrendFilter {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct TestResultsContext {
    #[doc = "Reference to a build."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub build: Option<BuildReference>,
    #[serde(
        rename = "contextType",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub context_type: Option<test_results_context::ContextType>,
    #[doc = "Pipeline reference"]
    #[serde(
        rename = "pipelineReference",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub pipeline_reference: Option<PipelineReference>,
    #[doc = "Reference to a release."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub release: Option<ReleaseReference>,
}
impl TestResultsContext {
    pub fn new() -> Self {
        Self::default()
    }
}
pub mod test_results_context {
    use super::*;
    #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
    pub enum ContextType {
        #[serde(rename = "build")]
        Build,
        #[serde(rename = "release")]
        Release,
        #[serde(rename = "pipeline")]
        Pipeline,
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct TestResultsDetails {
    #[serde(
        rename = "groupByField",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub group_by_field: Option<String>,
    #[serde(
        rename = "resultsForGroup",
        default,
        skip_serializing_if = "Vec::is_empty",
        deserialize_with = "crate::serde::deserialize_null_default"
    )]
    pub results_for_group: Vec<TestResultsDetailsForGroup>,
}
impl TestResultsDetails {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct TestResultsDetailsForGroup {
    #[serde(
        rename = "groupByValue",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub group_by_value: Option<serde_json::Value>,
    #[serde(
        default,
        skip_serializing_if = "Vec::is_empty",
        deserialize_with = "crate::serde::deserialize_null_default"
    )]
    pub results: Vec<TestCaseResult>,
    #[serde(
        rename = "resultsCountByOutcome",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub results_count_by_outcome: Option<serde_json::Value>,
    #[serde(
        default,
        skip_serializing_if = "Vec::is_empty",
        deserialize_with = "crate::serde::deserialize_null_default"
    )]
    pub tags: Vec<String>,
}
impl TestResultsDetailsForGroup {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct TestResultsQuery {
    #[serde(
        default,
        skip_serializing_if = "Vec::is_empty",
        deserialize_with = "crate::serde::deserialize_null_default"
    )]
    pub fields: Vec<String>,
    #[serde(
        default,
        skip_serializing_if = "Vec::is_empty",
        deserialize_with = "crate::serde::deserialize_null_default"
    )]
    pub results: Vec<TestCaseResult>,
    #[doc = ""]
    #[serde(
        rename = "resultsFilter",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub results_filter: Option<ResultsFilter>,
}
impl TestResultsQuery {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct TestResultsSettings {
    #[doc = ""]
    #[serde(
        rename = "flakySettings",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub flaky_settings: Option<FlakySettings>,
    #[doc = ""]
    #[serde(
        rename = "newTestResultLoggingSettings",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub new_test_result_logging_settings: Option<NewTestResultLoggingSettings>,
}
impl TestResultsSettings {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct TestResultsUpdateSettings {
    #[doc = ""]
    #[serde(
        rename = "flakySettings",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub flaky_settings: Option<FlakySettings>,
    #[doc = ""]
    #[serde(
        rename = "newTestResultLoggingSettings",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub new_test_result_logging_settings: Option<NewTestResultLoggingSettings>,
}
impl TestResultsUpdateSettings {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "Test run details."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct TestRun {
    #[doc = "An abstracted reference to some other resource. This class is used to provide the build data contracts with a uniform way to reference other resources in a way that provides easy traversal through links."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub build: Option<ShallowReference>,
    #[doc = "BuildConfiguration Details."]
    #[serde(
        rename = "buildConfiguration",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub build_configuration: Option<BuildConfiguration>,
    #[doc = "Comments entered by those analyzing the run."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub comment: Option<String>,
    #[doc = "Completed date time of the run."]
    #[serde(
        rename = "completedDate",
        default,
        skip_serializing_if = "Option::is_none",
        with = "crate::date_time::rfc3339::option"
    )]
    pub completed_date: Option<time::OffsetDateTime>,
    #[doc = "Test Run Controller."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub controller: Option<String>,
    #[doc = "Test Run CreatedDate."]
    #[serde(
        rename = "createdDate",
        default,
        skip_serializing_if = "Option::is_none",
        with = "crate::date_time::rfc3339::option"
    )]
    pub created_date: Option<time::OffsetDateTime>,
    #[doc = "List of Custom Fields for TestRun."]
    #[serde(
        rename = "customFields",
        default,
        skip_serializing_if = "Vec::is_empty",
        deserialize_with = "crate::serde::deserialize_null_default"
    )]
    pub custom_fields: Vec<CustomTestField>,
    #[doc = "Drop Location for the test Run."]
    #[serde(
        rename = "dropLocation",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub drop_location: Option<String>,
    #[doc = "An abstracted reference to some other resource. This class is used to provide the build data contracts with a uniform way to reference other resources in a way that provides easy traversal through links."]
    #[serde(
        rename = "dtlAutEnvironment",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub dtl_aut_environment: Option<ShallowReference>,
    #[doc = "An abstracted reference to some other resource. This class is used to provide the build data contracts with a uniform way to reference other resources in a way that provides easy traversal through links."]
    #[serde(
        rename = "dtlEnvironment",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub dtl_environment: Option<ShallowReference>,
    #[doc = "This is a temporary class to provide the details for the test run environment."]
    #[serde(
        rename = "dtlEnvironmentCreationDetails",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub dtl_environment_creation_details: Option<DtlEnvironmentDetails>,
    #[doc = "Due date and time for test run."]
    #[serde(
        rename = "dueDate",
        default,
        skip_serializing_if = "Option::is_none",
        with = "crate::date_time::rfc3339::option"
    )]
    pub due_date: Option<time::OffsetDateTime>,
    #[doc = "Error message associated with the run."]
    #[serde(
        rename = "errorMessage",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub error_message: Option<String>,
    #[doc = "This class is used to provide the filters used for discovery"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub filter: Option<RunFilter>,
    #[doc = "ID of the test run."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub id: Option<i32>,
    #[doc = "Number of Incomplete Tests."]
    #[serde(
        rename = "incompleteTests",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub incomplete_tests: Option<i32>,
    #[doc = "true if test run is automated, false otherwise."]
    #[serde(
        rename = "isAutomated",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub is_automated: Option<bool>,
    #[doc = "The iteration to which the run belongs."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub iteration: Option<String>,
    #[doc = ""]
    #[serde(
        rename = "lastUpdatedBy",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub last_updated_by: Option<IdentityRef>,
    #[doc = "Last updated date and time"]
    #[serde(
        rename = "lastUpdatedDate",
        default,
        skip_serializing_if = "Option::is_none",
        with = "crate::date_time::rfc3339::option"
    )]
    pub last_updated_date: Option<time::OffsetDateTime>,
    #[doc = "Name of the test run."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    #[doc = "Number of Not Applicable Tests."]
    #[serde(
        rename = "notApplicableTests",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub not_applicable_tests: Option<i32>,
    #[doc = ""]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub owner: Option<IdentityRef>,
    #[doc = "Number of passed tests in the run"]
    #[serde(
        rename = "passedTests",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub passed_tests: Option<i32>,
    #[doc = "Phase/State for the testRun."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub phase: Option<String>,
    #[doc = "Pipeline reference"]
    #[serde(
        rename = "pipelineReference",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub pipeline_reference: Option<PipelineReference>,
    #[doc = "An abstracted reference to some other resource. This class is used to provide the build data contracts with a uniform way to reference other resources in a way that provides easy traversal through links."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub plan: Option<ShallowReference>,
    #[doc = "Post Process State."]
    #[serde(
        rename = "postProcessState",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub post_process_state: Option<String>,
    #[doc = "An abstracted reference to some other resource. This class is used to provide the build data contracts with a uniform way to reference other resources in a way that provides easy traversal through links."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub project: Option<ShallowReference>,
    #[doc = "Reference to a release."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub release: Option<ReleaseReference>,
    #[doc = "Release Environment Uri for TestRun."]
    #[serde(
        rename = "releaseEnvironmentUri",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub release_environment_uri: Option<String>,
    #[doc = "Release Uri for TestRun."]
    #[serde(
        rename = "releaseUri",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub release_uri: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub revision: Option<i32>,
    #[doc = "RunSummary by outcome."]
    #[serde(
        rename = "runStatistics",
        default,
        skip_serializing_if = "Vec::is_empty",
        deserialize_with = "crate::serde::deserialize_null_default"
    )]
    pub run_statistics: Vec<RunStatistic>,
    #[doc = "Start date time of the run."]
    #[serde(
        rename = "startedDate",
        default,
        skip_serializing_if = "Option::is_none",
        with = "crate::date_time::rfc3339::option"
    )]
    pub started_date: Option<time::OffsetDateTime>,
    #[doc = "The state of the run. Type TestRunState Valid states - Unspecified ,NotStarted, InProgress, Completed, Waiting, Aborted, NeedsInvestigation"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub state: Option<String>,
    #[doc = "TestRun Substate."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub substate: Option<test_run::Substate>,
    #[doc = "Tags attached with this test run."]
    #[serde(
        default,
        skip_serializing_if = "Vec::is_empty",
        deserialize_with = "crate::serde::deserialize_null_default"
    )]
    pub tags: Vec<TestTag>,
    #[doc = "Test environment Detail."]
    #[serde(
        rename = "testEnvironment",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub test_environment: Option<TestEnvironment>,
    #[serde(
        rename = "testMessageLogId",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub test_message_log_id: Option<i32>,
    #[doc = "An abstracted reference to some other resource. This class is used to provide the build data contracts with a uniform way to reference other resources in a way that provides easy traversal through links."]
    #[serde(
        rename = "testSettings",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub test_settings: Option<ShallowReference>,
    #[doc = "Total tests in the run"]
    #[serde(
        rename = "totalTests",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub total_tests: Option<i32>,
    #[doc = "Number of failed tests in the run."]
    #[serde(
        rename = "unanalyzedTests",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub unanalyzed_tests: Option<i32>,
    #[doc = "Url of the test run"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub url: Option<String>,
    #[doc = "Web Access Url for TestRun."]
    #[serde(
        rename = "webAccessUrl",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub web_access_url: Option<String>,
}
impl TestRun {
    pub fn new() -> Self {
        Self::default()
    }
}
pub mod test_run {
    use super::*;
    #[doc = "TestRun Substate."]
    #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
    pub enum Substate {
        #[serde(rename = "none")]
        None,
        #[serde(rename = "creatingEnvironment")]
        CreatingEnvironment,
        #[serde(rename = "runningTests")]
        RunningTests,
        #[serde(rename = "canceledByUser")]
        CanceledByUser,
        #[serde(rename = "abortedBySystem")]
        AbortedBySystem,
        #[serde(rename = "timedOut")]
        TimedOut,
        #[serde(rename = "pendingAnalysis")]
        PendingAnalysis,
        #[serde(rename = "analyzed")]
        Analyzed,
        #[serde(rename = "cancellationInProgress")]
        CancellationInProgress,
    }
}
#[doc = "Test Run Code Coverage Details"]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct TestRunCoverage {
    #[doc = "Last Error"]
    #[serde(rename = "lastError", default, skip_serializing_if = "Option::is_none")]
    pub last_error: Option<String>,
    #[doc = "List of Modules Coverage"]
    #[serde(
        default,
        skip_serializing_if = "Vec::is_empty",
        deserialize_with = "crate::serde::deserialize_null_default"
    )]
    pub modules: Vec<ModuleCoverage>,
    #[doc = "State"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub state: Option<String>,
    #[doc = "An abstracted reference to some other resource. This class is used to provide the build data contracts with a uniform way to reference other resources in a way that provides easy traversal through links."]
    #[serde(rename = "testRun", default, skip_serializing_if = "Option::is_none")]
    pub test_run: Option<ShallowReference>,
}
impl TestRunCoverage {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "Test run statistics."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct TestRunStatistic {
    #[doc = "An abstracted reference to some other resource. This class is used to provide the build data contracts with a uniform way to reference other resources in a way that provides easy traversal through links."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub run: Option<ShallowReference>,
    #[serde(
        rename = "runStatistics",
        default,
        skip_serializing_if = "Vec::is_empty",
        deserialize_with = "crate::serde::deserialize_null_default"
    )]
    pub run_statistics: Vec<RunStatistic>,
}
impl TestRunStatistic {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "Represents the test settings of the run. Used to create test settings and fetch test settings"]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct TestSettings {
    #[doc = "Area path required to create test settings"]
    #[serde(rename = "areaPath", default, skip_serializing_if = "Option::is_none")]
    pub area_path: Option<String>,
    #[doc = "Description of the test settings. Used in create test settings."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub description: Option<String>,
    #[doc = "Indicates if the tests settings is public or private.Used in create test settings."]
    #[serde(rename = "isPublic", default, skip_serializing_if = "Option::is_none")]
    pub is_public: Option<bool>,
    #[doc = "Xml string of machine roles. Used in create test settings."]
    #[serde(
        rename = "machineRoles",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub machine_roles: Option<String>,
    #[doc = "Test settings content."]
    #[serde(
        rename = "testSettingsContent",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub test_settings_content: Option<String>,
    #[doc = "Test settings id."]
    #[serde(
        rename = "testSettingsId",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub test_settings_id: Option<i32>,
    #[doc = "Test settings name."]
    #[serde(
        rename = "testSettingsName",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub test_settings_name: Option<String>,
}
impl TestSettings {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "Represents a sub result of a test result."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct TestSubResult {
    #[doc = "Comment in sub result."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub comment: Option<String>,
    #[doc = "Time when test execution completed(UTC)."]
    #[serde(
        rename = "completedDate",
        default,
        skip_serializing_if = "Option::is_none",
        with = "crate::date_time::rfc3339::option"
    )]
    pub completed_date: Option<time::OffsetDateTime>,
    #[doc = "Machine where test executed."]
    #[serde(
        rename = "computerName",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub computer_name: Option<String>,
    #[doc = "An abstracted reference to some other resource. This class is used to provide the build data contracts with a uniform way to reference other resources in a way that provides easy traversal through links."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub configuration: Option<ShallowReference>,
    #[doc = "Additional properties of sub result."]
    #[serde(
        rename = "customFields",
        default,
        skip_serializing_if = "Vec::is_empty",
        deserialize_with = "crate::serde::deserialize_null_default"
    )]
    pub custom_fields: Vec<CustomTestField>,
    #[doc = "Name of sub result."]
    #[serde(
        rename = "displayName",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub display_name: Option<String>,
    #[doc = "Duration of test execution."]
    #[serde(
        rename = "durationInMs",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub duration_in_ms: Option<i64>,
    #[doc = "Error message in sub result."]
    #[serde(
        rename = "errorMessage",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub error_message: Option<String>,
    #[doc = "ID of sub result."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub id: Option<i32>,
    #[doc = "Time when result last updated(UTC)."]
    #[serde(
        rename = "lastUpdatedDate",
        default,
        skip_serializing_if = "Option::is_none",
        with = "crate::date_time::rfc3339::option"
    )]
    pub last_updated_date: Option<time::OffsetDateTime>,
    #[doc = "Outcome of sub result."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub outcome: Option<String>,
    #[doc = "Immediate parent ID of sub result."]
    #[serde(rename = "parentId", default, skip_serializing_if = "Option::is_none")]
    pub parent_id: Option<i32>,
    #[doc = "Hierarchy type of the result, default value of None means its leaf node."]
    #[serde(
        rename = "resultGroupType",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub result_group_type: Option<test_sub_result::ResultGroupType>,
    #[doc = "Index number of sub result."]
    #[serde(
        rename = "sequenceId",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub sequence_id: Option<i32>,
    #[doc = "Stacktrace."]
    #[serde(
        rename = "stackTrace",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub stack_trace: Option<String>,
    #[doc = "Time when test execution started(UTC)."]
    #[serde(
        rename = "startedDate",
        default,
        skip_serializing_if = "Option::is_none",
        with = "crate::date_time::rfc3339::option"
    )]
    pub started_date: Option<time::OffsetDateTime>,
    #[doc = "List of sub results inside a sub result, if ResultGroupType is not None, it holds corresponding type sub results."]
    #[serde(
        rename = "subResults",
        default,
        skip_serializing_if = "Vec::is_empty",
        deserialize_with = "crate::serde::deserialize_null_default"
    )]
    pub sub_results: Vec<TestSubResult>,
    #[doc = "Reference to a test result."]
    #[serde(
        rename = "testResult",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub test_result: Option<TestCaseResultIdentifier>,
    #[doc = "Url of sub result."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub url: Option<String>,
}
impl TestSubResult {
    pub fn new() -> Self {
        Self::default()
    }
}
pub mod test_sub_result {
    use super::*;
    #[doc = "Hierarchy type of the result, default value of None means its leaf node."]
    #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
    pub enum ResultGroupType {
        #[serde(rename = "none")]
        None,
        #[serde(rename = "rerun")]
        Rerun,
        #[serde(rename = "dataDriven")]
        DataDriven,
        #[serde(rename = "orderedTest")]
        OrderedTest,
        #[serde(rename = "generic")]
        Generic,
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct TestSummaryForWorkItem {
    #[doc = ""]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub summary: Option<AggregatedDataForResultTrend>,
    #[doc = "WorkItem reference Details."]
    #[serde(rename = "workItem", default, skip_serializing_if = "Option::is_none")]
    pub work_item: Option<WorkItemReference>,
}
impl TestSummaryForWorkItem {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "Tag attached to a run or result."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct TestTag {
    #[doc = "Name of the tag, alphanumeric value less than 30 chars"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
}
impl TestTag {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "Test tag summary for build or release grouped by test run."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct TestTagSummary {
    #[doc = "Dictionary which contains tags associated with a test run."]
    #[serde(
        rename = "tagsGroupByTestArtifact",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub tags_group_by_test_artifact: Option<serde_json::Value>,
}
impl TestTagSummary {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "Tags to update to a run or result."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct TestTagsUpdateModel {
    #[serde(
        default,
        skip_serializing_if = "Vec::is_empty",
        deserialize_with = "crate::serde::deserialize_null_default"
    )]
    pub tags: Vec<serde_json::Value>,
}
impl TestTagsUpdateModel {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct TestToWorkItemLinks {
    #[doc = ""]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub test: Option<TestMethod>,
    #[serde(
        rename = "workItems",
        default,
        skip_serializing_if = "Vec::is_empty",
        deserialize_with = "crate::serde::deserialize_null_default"
    )]
    pub work_items: Vec<WorkItemReference>,
}
impl TestToWorkItemLinks {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "This class is used to serialize collections as a single JSON object on the wire."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct VssJsonCollectionWrapper {
    #[serde(flatten)]
    pub vss_json_collection_wrapper_base: VssJsonCollectionWrapperBase,
    #[doc = "The serialized item."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub value: Option<String>,
}
impl VssJsonCollectionWrapper {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct VssJsonCollectionWrapperBase {
    #[doc = "The number of serialized items."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub count: Option<i32>,
}
impl VssJsonCollectionWrapperBase {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "WorkItem reference Details."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct WorkItemReference {
    #[doc = "WorkItem Id."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub id: Option<String>,
    #[doc = "WorkItem Name."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    #[doc = "WorkItem Type."]
    #[serde(rename = "type", default, skip_serializing_if = "Option::is_none")]
    pub type_: Option<String>,
    #[doc = "WorkItem Url. Valid Values : (Bug, Task, User Story, Test Case)"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub url: Option<String>,
    #[doc = "WorkItem WebUrl."]
    #[serde(rename = "webUrl", default, skip_serializing_if = "Option::is_none")]
    pub web_url: Option<String>,
}
impl WorkItemReference {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct WorkItemToTestLinks {
    #[serde(
        rename = "executedIn",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub executed_in: Option<work_item_to_test_links::ExecutedIn>,
    #[serde(
        default,
        skip_serializing_if = "Vec::is_empty",
        deserialize_with = "crate::serde::deserialize_null_default"
    )]
    pub tests: Vec<TestMethod>,
    #[doc = "WorkItem reference Details."]
    #[serde(rename = "workItem", default, skip_serializing_if = "Option::is_none")]
    pub work_item: Option<WorkItemReference>,
}
impl WorkItemToTestLinks {
    pub fn new() -> Self {
        Self::default()
    }
}
pub mod work_item_to_test_links {
    use super::*;
    #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
    pub enum ExecutedIn {
        #[serde(rename = "any")]
        Any,
        #[serde(rename = "tcm")]
        Tcm,
        #[serde(rename = "tfs")]
        Tfs,
    }
}