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
#[derive(
    Debug,
    Clone,
    PartialEq,
    Eq,
    PartialOrd,
    Ord,
    Hash,
    :: serde :: Serialize,
    :: serde :: Deserialize,
)]
pub enum Image {
    #[doc = "image/aces"]
    #[serde(rename = "image/aces")]
    Aces,
    #[doc = "image/avci"]
    #[serde(rename = "image/avci")]
    Avci,
    #[doc = "image/avcs"]
    #[serde(rename = "image/avcs")]
    Avcs,
    #[doc = "image/avif"]
    #[serde(rename = "image/avif")]
    Avif,
    #[doc = "image/bmp"]
    #[serde(rename = "image/bmp")]
    Bmp,
    #[doc = "image/cgm"]
    #[serde(rename = "image/cgm")]
    Cgm,
    #[doc = "image/dicom-rle"]
    #[serde(rename = "image/dicom-rle")]
    DicomRle,
    #[doc = "image/dpx"]
    #[serde(rename = "image/dpx")]
    Dpx,
    #[doc = "image/emf"]
    #[serde(rename = "image/emf")]
    Emf,
    #[doc = "image/example"]
    #[serde(rename = "image/example")]
    Example,
    #[doc = "image/fits"]
    #[serde(rename = "image/fits")]
    Fits,
    #[doc = "image/g3fax"]
    #[serde(rename = "image/g3fax")]
    G3Fax,
    #[doc = "image/heic"]
    #[serde(rename = "image/heic")]
    Heic,
    #[doc = "image/heic-sequence"]
    #[serde(rename = "image/heic-sequence")]
    HeicSequence,
    #[doc = "image/heif"]
    #[serde(rename = "image/heif")]
    Heif,
    #[doc = "image/heif-sequence"]
    #[serde(rename = "image/heif-sequence")]
    HeifSequence,
    #[doc = "image/hej2k"]
    #[serde(rename = "image/hej2k")]
    Hej2K,
    #[doc = "image/hsj2"]
    #[serde(rename = "image/hsj2")]
    Hsj2,
    #[doc = "image/jls"]
    #[serde(rename = "image/jls")]
    Jls,
    #[doc = "image/jp2"]
    #[serde(rename = "image/jp2")]
    Jp2,
    #[doc = "image/jph"]
    #[serde(rename = "image/jph")]
    Jph,
    #[doc = "image/jphc"]
    #[serde(rename = "image/jphc")]
    Jphc,
    #[doc = "image/jpm"]
    #[serde(rename = "image/jpm")]
    Jpm,
    #[doc = "image/jpx"]
    #[serde(rename = "image/jpx")]
    Jpx,
    #[doc = "image/jxr"]
    #[serde(rename = "image/jxr")]
    Jxr,
    #[doc = "image/jxrA"]
    #[serde(rename = "image/jxrA")]
    JxrA,
    #[doc = "image/jxrS"]
    #[serde(rename = "image/jxrS")]
    JxrS,
    #[doc = "image/jxs"]
    #[serde(rename = "image/jxs")]
    Jxs,
    #[doc = "image/jxsc"]
    #[serde(rename = "image/jxsc")]
    Jxsc,
    #[doc = "image/jxsi"]
    #[serde(rename = "image/jxsi")]
    Jxsi,
    #[doc = "image/jxss"]
    #[serde(rename = "image/jxss")]
    Jxss,
    #[doc = "image/ktx"]
    #[serde(rename = "image/ktx")]
    Ktx,
    #[doc = "image/ktx2"]
    #[serde(rename = "image/ktx2")]
    Ktx2,
    #[doc = "image/naplps"]
    #[serde(rename = "image/naplps")]
    Naplps,
    #[doc = "image/png"]
    #[serde(rename = "image/png")]
    Png,
    #[doc = "image/prs.btif"]
    #[serde(rename = "image/prs.btif")]
    PrsBtif,
    #[doc = "image/prs.pti"]
    #[serde(rename = "image/prs.pti")]
    PrsPti,
    #[doc = "image/pwg-raster"]
    #[serde(rename = "image/pwg-raster")]
    PwgRaster,
    #[doc = "image/svg+xml"]
    #[serde(rename = "image/svg+xml")]
    SvgXml,
    #[doc = "image/t38"]
    #[serde(rename = "image/t38")]
    T38,
    #[doc = "image/tiff"]
    #[serde(rename = "image/tiff")]
    Tiff,
    #[doc = "image/tiff-fx"]
    #[serde(rename = "image/tiff-fx")]
    TiffFx,
    #[doc = "image/vnd.adobe.photoshop"]
    #[serde(rename = "image/vnd.adobe.photoshop")]
    VndAdobePhotoshop,
    #[doc = "image/vnd.airzip.accelerator.azv"]
    #[serde(rename = "image/vnd.airzip.accelerator.azv")]
    VndAirzipAcceleratorAzv,
    #[doc = "image/vnd.cns.inf2"]
    #[serde(rename = "image/vnd.cns.inf2")]
    VndCnsInf2,
    #[doc = "image/vnd.dece.graphic"]
    #[serde(rename = "image/vnd.dece.graphic")]
    VndDeceGraphic,
    #[doc = "image/vnd.djvu"]
    #[serde(rename = "image/vnd.djvu")]
    VndDjvu,
    #[doc = "image/vnd.dwg"]
    #[serde(rename = "image/vnd.dwg")]
    VndDwg,
    #[doc = "image/vnd.dxf"]
    #[serde(rename = "image/vnd.dxf")]
    VndDxf,
    #[doc = "image/vnd.dvb.subtitle"]
    #[serde(rename = "image/vnd.dvb.subtitle")]
    VndDvbSubtitle,
    #[doc = "image/vnd.fastbidsheet"]
    #[serde(rename = "image/vnd.fastbidsheet")]
    VndFastbidsheet,
    #[doc = "image/vnd.fpx"]
    #[serde(rename = "image/vnd.fpx")]
    VndFpx,
    #[doc = "image/vnd.fst"]
    #[serde(rename = "image/vnd.fst")]
    VndFst,
    #[doc = "image/vnd.fujixerox.edmics-mmr"]
    #[serde(rename = "image/vnd.fujixerox.edmics-mmr")]
    VndFujixeroxEdmicsMmr,
    #[doc = "image/vnd.fujixerox.edmics-rlc"]
    #[serde(rename = "image/vnd.fujixerox.edmics-rlc")]
    VndFujixeroxEdmicsRlc,
    #[doc = "image/vnd.globalgraphics.pgb"]
    #[serde(rename = "image/vnd.globalgraphics.pgb")]
    VndGlobalgraphicsPgb,
    #[doc = "image/vnd.microsoft.icon"]
    #[serde(rename = "image/vnd.microsoft.icon")]
    VndMicrosoftIcon,
    #[doc = "image/vnd.mix"]
    #[serde(rename = "image/vnd.mix")]
    VndMix,
    #[doc = "image/vnd.ms-modi"]
    #[serde(rename = "image/vnd.ms-modi")]
    VndMsModi,
    #[doc = "image/vnd.mozilla.apng"]
    #[serde(rename = "image/vnd.mozilla.apng")]
    VndMozillaApng,
    #[doc = "image/vnd.net-fpx"]
    #[serde(rename = "image/vnd.net-fpx")]
    VndNetFpx,
    #[doc = "image/vnd.pco.b16"]
    #[serde(rename = "image/vnd.pco.b16")]
    VndPcoB16,
    #[doc = "image/vnd.radiance"]
    #[serde(rename = "image/vnd.radiance")]
    VndRadiance,
    #[doc = "image/vnd.sealed.png"]
    #[serde(rename = "image/vnd.sealed.png")]
    VndSealedPng,
    #[doc = "image/vnd.sealedmedia.softseal.gif"]
    #[serde(rename = "image/vnd.sealedmedia.softseal.gif")]
    VndSealedmediaSoftsealGif,
    #[doc = "image/vnd.sealedmedia.softseal.jpg"]
    #[serde(rename = "image/vnd.sealedmedia.softseal.jpg")]
    VndSealedmediaSoftsealJpg,
    #[doc = "image/vnd.svf"]
    #[serde(rename = "image/vnd.svf")]
    VndSvf,
    #[doc = "image/vnd.tencent.tap"]
    #[serde(rename = "image/vnd.tencent.tap")]
    VndTencentTap,
    #[doc = "image/vnd.valve.source.texture"]
    #[serde(rename = "image/vnd.valve.source.texture")]
    VndValveSourceTexture,
    #[doc = "image/vnd.wap.wbmp"]
    #[serde(rename = "image/vnd.wap.wbmp")]
    VndWapWbmp,
    #[doc = "image/vnd.xiff"]
    #[serde(rename = "image/vnd.xiff")]
    VndXiff,
    #[doc = "image/vnd.zbrush.pcx"]
    #[serde(rename = "image/vnd.zbrush.pcx")]
    VndZbrushPcx,
    #[doc = "image/wmf"]
    #[serde(rename = "image/wmf")]
    Wmf,
}
impl ::std::fmt::Display for Image {
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
        match self {
            Image::Aces => write!(f, "image/aces")?,
            Image::Avci => write!(f, "image/avci")?,
            Image::Avcs => write!(f, "image/avcs")?,
            Image::Avif => write!(f, "image/avif")?,
            Image::Bmp => write!(f, "image/bmp")?,
            Image::Cgm => write!(f, "image/cgm")?,
            Image::DicomRle => write!(f, "image/dicom-rle")?,
            Image::Dpx => write!(f, "image/dpx")?,
            Image::Emf => write!(f, "image/emf")?,
            Image::Example => write!(f, "image/example")?,
            Image::Fits => write!(f, "image/fits")?,
            Image::G3Fax => write!(f, "image/g3fax")?,
            Image::Heic => write!(f, "image/heic")?,
            Image::HeicSequence => write!(f, "image/heic-sequence")?,
            Image::Heif => write!(f, "image/heif")?,
            Image::HeifSequence => write!(f, "image/heif-sequence")?,
            Image::Hej2K => write!(f, "image/hej2k")?,
            Image::Hsj2 => write!(f, "image/hsj2")?,
            Image::Jls => write!(f, "image/jls")?,
            Image::Jp2 => write!(f, "image/jp2")?,
            Image::Jph => write!(f, "image/jph")?,
            Image::Jphc => write!(f, "image/jphc")?,
            Image::Jpm => write!(f, "image/jpm")?,
            Image::Jpx => write!(f, "image/jpx")?,
            Image::Jxr => write!(f, "image/jxr")?,
            Image::JxrA => write!(f, "image/jxrA")?,
            Image::JxrS => write!(f, "image/jxrS")?,
            Image::Jxs => write!(f, "image/jxs")?,
            Image::Jxsc => write!(f, "image/jxsc")?,
            Image::Jxsi => write!(f, "image/jxsi")?,
            Image::Jxss => write!(f, "image/jxss")?,
            Image::Ktx => write!(f, "image/ktx")?,
            Image::Ktx2 => write!(f, "image/ktx2")?,
            Image::Naplps => write!(f, "image/naplps")?,
            Image::Png => write!(f, "image/png")?,
            Image::PrsBtif => write!(f, "image/prs.btif")?,
            Image::PrsPti => write!(f, "image/prs.pti")?,
            Image::PwgRaster => write!(f, "image/pwg-raster")?,
            Image::SvgXml => write!(f, "image/svg+xml")?,
            Image::T38 => write!(f, "image/t38")?,
            Image::Tiff => write!(f, "image/tiff")?,
            Image::TiffFx => write!(f, "image/tiff-fx")?,
            Image::VndAdobePhotoshop => write!(f, "image/vnd.adobe.photoshop")?,
            Image::VndAirzipAcceleratorAzv => write!(f, "image/vnd.airzip.accelerator.azv")?,
            Image::VndCnsInf2 => write!(f, "image/vnd.cns.inf2")?,
            Image::VndDeceGraphic => write!(f, "image/vnd.dece.graphic")?,
            Image::VndDjvu => write!(f, "image/vnd.djvu")?,
            Image::VndDwg => write!(f, "image/vnd.dwg")?,
            Image::VndDxf => write!(f, "image/vnd.dxf")?,
            Image::VndDvbSubtitle => write!(f, "image/vnd.dvb.subtitle")?,
            Image::VndFastbidsheet => write!(f, "image/vnd.fastbidsheet")?,
            Image::VndFpx => write!(f, "image/vnd.fpx")?,
            Image::VndFst => write!(f, "image/vnd.fst")?,
            Image::VndFujixeroxEdmicsMmr => write!(f, "image/vnd.fujixerox.edmics-mmr")?,
            Image::VndFujixeroxEdmicsRlc => write!(f, "image/vnd.fujixerox.edmics-rlc")?,
            Image::VndGlobalgraphicsPgb => write!(f, "image/vnd.globalgraphics.pgb")?,
            Image::VndMicrosoftIcon => write!(f, "image/vnd.microsoft.icon")?,
            Image::VndMix => write!(f, "image/vnd.mix")?,
            Image::VndMsModi => write!(f, "image/vnd.ms-modi")?,
            Image::VndMozillaApng => write!(f, "image/vnd.mozilla.apng")?,
            Image::VndNetFpx => write!(f, "image/vnd.net-fpx")?,
            Image::VndPcoB16 => write!(f, "image/vnd.pco.b16")?,
            Image::VndRadiance => write!(f, "image/vnd.radiance")?,
            Image::VndSealedPng => write!(f, "image/vnd.sealed.png")?,
            Image::VndSealedmediaSoftsealGif => write!(f, "image/vnd.sealedmedia.softseal.gif")?,
            Image::VndSealedmediaSoftsealJpg => write!(f, "image/vnd.sealedmedia.softseal.jpg")?,
            Image::VndSvf => write!(f, "image/vnd.svf")?,
            Image::VndTencentTap => write!(f, "image/vnd.tencent.tap")?,
            Image::VndValveSourceTexture => write!(f, "image/vnd.valve.source.texture")?,
            Image::VndWapWbmp => write!(f, "image/vnd.wap.wbmp")?,
            Image::VndXiff => write!(f, "image/vnd.xiff")?,
            Image::VndZbrushPcx => write!(f, "image/vnd.zbrush.pcx")?,
            Image::Wmf => write!(f, "image/wmf")?,
        }
        Ok(())
    }
}
impl ::std::str::FromStr for Image {
    type Err = ();
    fn from_str(input: &str) -> ::std::result::Result<Self, Self::Err> {
        match input {
            "image/aces" => Ok(Image::Aces),
            "image/avci" => Ok(Image::Avci),
            "image/avcs" => Ok(Image::Avcs),
            "image/avif" => Ok(Image::Avif),
            "image/bmp" => Ok(Image::Bmp),
            "image/cgm" => Ok(Image::Cgm),
            "image/dicom-rle" => Ok(Image::DicomRle),
            "image/dpx" => Ok(Image::Dpx),
            "image/emf" => Ok(Image::Emf),
            "image/example" => Ok(Image::Example),
            "image/fits" => Ok(Image::Fits),
            "image/g3fax" => Ok(Image::G3Fax),
            "image/heic" => Ok(Image::Heic),
            "image/heic-sequence" => Ok(Image::HeicSequence),
            "image/heif" => Ok(Image::Heif),
            "image/heif-sequence" => Ok(Image::HeifSequence),
            "image/hej2k" => Ok(Image::Hej2K),
            "image/hsj2" => Ok(Image::Hsj2),
            "image/jls" => Ok(Image::Jls),
            "image/jp2" => Ok(Image::Jp2),
            "image/jph" => Ok(Image::Jph),
            "image/jphc" => Ok(Image::Jphc),
            "image/jpm" => Ok(Image::Jpm),
            "image/jpx" => Ok(Image::Jpx),
            "image/jxr" => Ok(Image::Jxr),
            "image/jxrA" => Ok(Image::JxrA),
            "image/jxrS" => Ok(Image::JxrS),
            "image/jxs" => Ok(Image::Jxs),
            "image/jxsc" => Ok(Image::Jxsc),
            "image/jxsi" => Ok(Image::Jxsi),
            "image/jxss" => Ok(Image::Jxss),
            "image/ktx" => Ok(Image::Ktx),
            "image/ktx2" => Ok(Image::Ktx2),
            "image/naplps" => Ok(Image::Naplps),
            "image/png" => Ok(Image::Png),
            "image/prs.btif" => Ok(Image::PrsBtif),
            "image/prs.pti" => Ok(Image::PrsPti),
            "image/pwg-raster" => Ok(Image::PwgRaster),
            "image/svg+xml" => Ok(Image::SvgXml),
            "image/t38" => Ok(Image::T38),
            "image/tiff" => Ok(Image::Tiff),
            "image/tiff-fx" => Ok(Image::TiffFx),
            "image/vnd.adobe.photoshop" => Ok(Image::VndAdobePhotoshop),
            "image/vnd.airzip.accelerator.azv" => Ok(Image::VndAirzipAcceleratorAzv),
            "image/vnd.cns.inf2" => Ok(Image::VndCnsInf2),
            "image/vnd.dece.graphic" => Ok(Image::VndDeceGraphic),
            "image/vnd.djvu" => Ok(Image::VndDjvu),
            "image/vnd.dwg" => Ok(Image::VndDwg),
            "image/vnd.dxf" => Ok(Image::VndDxf),
            "image/vnd.dvb.subtitle" => Ok(Image::VndDvbSubtitle),
            "image/vnd.fastbidsheet" => Ok(Image::VndFastbidsheet),
            "image/vnd.fpx" => Ok(Image::VndFpx),
            "image/vnd.fst" => Ok(Image::VndFst),
            "image/vnd.fujixerox.edmics-mmr" => Ok(Image::VndFujixeroxEdmicsMmr),
            "image/vnd.fujixerox.edmics-rlc" => Ok(Image::VndFujixeroxEdmicsRlc),
            "image/vnd.globalgraphics.pgb" => Ok(Image::VndGlobalgraphicsPgb),
            "image/vnd.microsoft.icon" => Ok(Image::VndMicrosoftIcon),
            "image/vnd.mix" => Ok(Image::VndMix),
            "image/vnd.ms-modi" => Ok(Image::VndMsModi),
            "image/vnd.mozilla.apng" => Ok(Image::VndMozillaApng),
            "image/vnd.net-fpx" => Ok(Image::VndNetFpx),
            "image/vnd.pco.b16" => Ok(Image::VndPcoB16),
            "image/vnd.radiance" => Ok(Image::VndRadiance),
            "image/vnd.sealed.png" => Ok(Image::VndSealedPng),
            "image/vnd.sealedmedia.softseal.gif" => Ok(Image::VndSealedmediaSoftsealGif),
            "image/vnd.sealedmedia.softseal.jpg" => Ok(Image::VndSealedmediaSoftsealJpg),
            "image/vnd.svf" => Ok(Image::VndSvf),
            "image/vnd.tencent.tap" => Ok(Image::VndTencentTap),
            "image/vnd.valve.source.texture" => Ok(Image::VndValveSourceTexture),
            "image/vnd.wap.wbmp" => Ok(Image::VndWapWbmp),
            "image/vnd.xiff" => Ok(Image::VndXiff),
            "image/vnd.zbrush.pcx" => Ok(Image::VndZbrushPcx),
            "image/wmf" => Ok(Image::Wmf),
            _ => Err(()),
        }
    }
}