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
#[derive(
    Debug,
    Clone,
    PartialEq,
    Eq,
    PartialOrd,
    Ord,
    Hash,
    :: serde :: Serialize,
    :: serde :: Deserialize,
)]
pub enum Text {
    #[doc = "text/1d-interleaved-parityfec"]
    #[serde(rename = "text/1d-interleaved-parityfec")]
    _1DInterleavedParityfec,
    #[doc = "text/cache-manifest"]
    #[serde(rename = "text/cache-manifest")]
    CacheManifest,
    #[doc = "text/calendar"]
    #[serde(rename = "text/calendar")]
    Calendar,
    #[doc = "text/cql"]
    #[serde(rename = "text/cql")]
    Cql,
    #[doc = "text/cql-expression"]
    #[serde(rename = "text/cql-expression")]
    CqlExpression,
    #[doc = "text/cql-identifier"]
    #[serde(rename = "text/cql-identifier")]
    CqlIdentifier,
    #[doc = "text/css"]
    #[serde(rename = "text/css")]
    Css,
    #[doc = "text/csv"]
    #[serde(rename = "text/csv")]
    Csv,
    #[doc = "text/csv-schema"]
    #[serde(rename = "text/csv-schema")]
    CsvSchema,
    #[doc = "text/dns"]
    #[serde(rename = "text/dns")]
    Dns,
    #[doc = "text/encaprtp"]
    #[serde(rename = "text/encaprtp")]
    Encaprtp,
    #[doc = "text/example"]
    #[serde(rename = "text/example")]
    Example,
    #[doc = "text/fhirpath"]
    #[serde(rename = "text/fhirpath")]
    Fhirpath,
    #[doc = "text/flexfec"]
    #[serde(rename = "text/flexfec")]
    Flexfec,
    #[doc = "text/fwdred"]
    #[serde(rename = "text/fwdred")]
    Fwdred,
    #[doc = "text/gff3"]
    #[serde(rename = "text/gff3")]
    Gff3,
    #[doc = "text/grammar-ref-list"]
    #[serde(rename = "text/grammar-ref-list")]
    GrammarRefList,
    #[doc = "text/hl7v2"]
    #[serde(rename = "text/hl7v2")]
    Hl7V2,
    #[doc = "text/html"]
    #[serde(rename = "text/html")]
    Html,
    #[doc = "text/javascript"]
    #[serde(rename = "text/javascript")]
    Javascript,
    #[doc = "text/jcr-cnd"]
    #[serde(rename = "text/jcr-cnd")]
    JcrCnd,
    #[doc = "text/markdown"]
    #[serde(rename = "text/markdown")]
    Markdown,
    #[doc = "text/mizar"]
    #[serde(rename = "text/mizar")]
    Mizar,
    #[doc = "text/n3"]
    #[serde(rename = "text/n3")]
    N3,
    #[doc = "text/parameters"]
    #[serde(rename = "text/parameters")]
    Parameters,
    #[doc = "text/parityfec"]
    #[serde(rename = "text/parityfec")]
    Parityfec,
    #[doc = "text/provenance-notation"]
    #[serde(rename = "text/provenance-notation")]
    ProvenanceNotation,
    #[doc = "text/prs.fallenstein.rst"]
    #[serde(rename = "text/prs.fallenstein.rst")]
    PrsFallensteinRst,
    #[doc = "text/prs.lines.tag"]
    #[serde(rename = "text/prs.lines.tag")]
    PrsLinesTag,
    #[doc = "text/prs.prop.logic"]
    #[serde(rename = "text/prs.prop.logic")]
    PrsPropLogic,
    #[doc = "text/raptorfec"]
    #[serde(rename = "text/raptorfec")]
    Raptorfec,
    #[doc = "text/RED"]
    #[serde(rename = "text/RED")]
    Red,
    #[doc = "text/rfc822-headers"]
    #[serde(rename = "text/rfc822-headers")]
    Rfc822Headers,
    #[doc = "text/rtf"]
    #[serde(rename = "text/rtf")]
    Rtf,
    #[doc = "text/rtp-enc-aescm128"]
    #[serde(rename = "text/rtp-enc-aescm128")]
    RtpEncAescm128,
    #[doc = "text/rtploopback"]
    #[serde(rename = "text/rtploopback")]
    Rtploopback,
    #[doc = "text/rtx"]
    #[serde(rename = "text/rtx")]
    Rtx,
    #[doc = "text/SGML"]
    #[serde(rename = "text/SGML")]
    Sgml,
    #[doc = "text/shaclc"]
    #[serde(rename = "text/shaclc")]
    Shaclc,
    #[doc = "text/shex"]
    #[serde(rename = "text/shex")]
    Shex,
    #[doc = "text/spdx"]
    #[serde(rename = "text/spdx")]
    Spdx,
    #[doc = "text/strings"]
    #[serde(rename = "text/strings")]
    Strings,
    #[doc = "text/t140"]
    #[serde(rename = "text/t140")]
    T140,
    #[doc = "text/tab-separated-values"]
    #[serde(rename = "text/tab-separated-values")]
    TabSeparatedValues,
    #[doc = "text/troff"]
    #[serde(rename = "text/troff")]
    Troff,
    #[doc = "text/turtle"]
    #[serde(rename = "text/turtle")]
    Turtle,
    #[doc = "text/ulpfec"]
    #[serde(rename = "text/ulpfec")]
    Ulpfec,
    #[doc = "text/uri-list"]
    #[serde(rename = "text/uri-list")]
    UriList,
    #[doc = "text/vcard"]
    #[serde(rename = "text/vcard")]
    Vcard,
    #[doc = "text/vnd.a"]
    #[serde(rename = "text/vnd.a")]
    VndA,
    #[doc = "text/vnd.abc"]
    #[serde(rename = "text/vnd.abc")]
    VndAbc,
    #[doc = "text/vnd.ascii-art"]
    #[serde(rename = "text/vnd.ascii-art")]
    VndAsciiArt,
    #[doc = "text/vnd.curl"]
    #[serde(rename = "text/vnd.curl")]
    VndCurl,
    #[doc = "text/vnd.debian.copyright"]
    #[serde(rename = "text/vnd.debian.copyright")]
    VndDebianCopyright,
    #[doc = "text/vnd.DMClientScript"]
    #[serde(rename = "text/vnd.DMClientScript")]
    VndDMClientScript,
    #[doc = "text/vnd.dvb.subtitle"]
    #[serde(rename = "text/vnd.dvb.subtitle")]
    VndDvbSubtitle,
    #[doc = "text/vnd.esmertec.theme-descriptor"]
    #[serde(rename = "text/vnd.esmertec.theme-descriptor")]
    VndEsmertecThemeDescriptor,
    #[doc = "text/vnd.exchangeable"]
    #[serde(rename = "text/vnd.exchangeable")]
    VndExchangeable,
    #[doc = "text/vnd.familysearch.gedcom"]
    #[serde(rename = "text/vnd.familysearch.gedcom")]
    VndFamilysearchGedcom,
    #[doc = "text/vnd.ficlab.flt"]
    #[serde(rename = "text/vnd.ficlab.flt")]
    VndFiclabFlt,
    #[doc = "text/vnd.fly"]
    #[serde(rename = "text/vnd.fly")]
    VndFly,
    #[doc = "text/vnd.fmi.flexstor"]
    #[serde(rename = "text/vnd.fmi.flexstor")]
    VndFmiFlexstor,
    #[doc = "text/vnd.gml"]
    #[serde(rename = "text/vnd.gml")]
    VndGml,
    #[doc = "text/vnd.graphviz"]
    #[serde(rename = "text/vnd.graphviz")]
    VndGraphviz,
    #[doc = "text/vnd.hans"]
    #[serde(rename = "text/vnd.hans")]
    VndHans,
    #[doc = "text/vnd.hgl"]
    #[serde(rename = "text/vnd.hgl")]
    VndHgl,
    #[doc = "text/vnd.in3d.3dml"]
    #[serde(rename = "text/vnd.in3d.3dml")]
    VndIn3D3Dml,
    #[doc = "text/vnd.in3d.spot"]
    #[serde(rename = "text/vnd.in3d.spot")]
    VndIn3DSpot,
    #[doc = "text/vnd.IPTC.NewsML"]
    #[serde(rename = "text/vnd.IPTC.NewsML")]
    VndIPTCNewsML,
    #[doc = "text/vnd.IPTC.NITF"]
    #[serde(rename = "text/vnd.IPTC.NITF")]
    VndIPTCNITF,
    #[doc = "text/vnd.latex-z"]
    #[serde(rename = "text/vnd.latex-z")]
    VndLatexZ,
    #[doc = "text/vnd.motorola.reflex"]
    #[serde(rename = "text/vnd.motorola.reflex")]
    VndMotorolaReflex,
    #[doc = "text/vnd.ms-mediapackage"]
    #[serde(rename = "text/vnd.ms-mediapackage")]
    VndMsMediapackage,
    #[doc = "text/vnd.net2phone.commcenter.command"]
    #[serde(rename = "text/vnd.net2phone.commcenter.command")]
    VndNet2PhoneCommcenterCommand,
    #[doc = "text/vnd.radisys.msml-basic-layout"]
    #[serde(rename = "text/vnd.radisys.msml-basic-layout")]
    VndRadisysMsmlBasicLayout,
    #[doc = "text/vnd.senx.warpscript"]
    #[serde(rename = "text/vnd.senx.warpscript")]
    VndSenxWarpscript,
    #[doc = "text/vnd.sun.j2me.app-descriptor"]
    #[serde(rename = "text/vnd.sun.j2me.app-descriptor")]
    VndSunJ2MeAppDescriptor,
    #[doc = "text/vnd.sosi"]
    #[serde(rename = "text/vnd.sosi")]
    VndSosi,
    #[doc = "text/vnd.trolltech.linguist"]
    #[serde(rename = "text/vnd.trolltech.linguist")]
    VndTrolltechLinguist,
    #[doc = "text/vnd.wap.si"]
    #[serde(rename = "text/vnd.wap.si")]
    VndWapSi,
    #[doc = "text/vnd.wap.sl"]
    #[serde(rename = "text/vnd.wap.sl")]
    VndWapSl,
    #[doc = "text/vnd.wap.wml"]
    #[serde(rename = "text/vnd.wap.wml")]
    VndWapWml,
    #[doc = "text/vnd.wap.wmlscript"]
    #[serde(rename = "text/vnd.wap.wmlscript")]
    VndWapWmlscript,
    #[doc = "text/vtt"]
    #[serde(rename = "text/vtt")]
    Vtt,
    #[doc = "text/xml"]
    #[serde(rename = "text/xml")]
    Xml,
    #[doc = "text/xml-external-parsed-entity"]
    #[serde(rename = "text/xml-external-parsed-entity")]
    XmlExternalParsedEntity,
}
impl ::std::fmt::Display for Text {
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
        match self {
            Text::_1DInterleavedParityfec => write!(f, "text/1d-interleaved-parityfec")?,
            Text::CacheManifest => write!(f, "text/cache-manifest")?,
            Text::Calendar => write!(f, "text/calendar")?,
            Text::Cql => write!(f, "text/cql")?,
            Text::CqlExpression => write!(f, "text/cql-expression")?,
            Text::CqlIdentifier => write!(f, "text/cql-identifier")?,
            Text::Css => write!(f, "text/css")?,
            Text::Csv => write!(f, "text/csv")?,
            Text::CsvSchema => write!(f, "text/csv-schema")?,
            Text::Dns => write!(f, "text/dns")?,
            Text::Encaprtp => write!(f, "text/encaprtp")?,
            Text::Example => write!(f, "text/example")?,
            Text::Fhirpath => write!(f, "text/fhirpath")?,
            Text::Flexfec => write!(f, "text/flexfec")?,
            Text::Fwdred => write!(f, "text/fwdred")?,
            Text::Gff3 => write!(f, "text/gff3")?,
            Text::GrammarRefList => write!(f, "text/grammar-ref-list")?,
            Text::Hl7V2 => write!(f, "text/hl7v2")?,
            Text::Html => write!(f, "text/html")?,
            Text::Javascript => write!(f, "text/javascript")?,
            Text::JcrCnd => write!(f, "text/jcr-cnd")?,
            Text::Markdown => write!(f, "text/markdown")?,
            Text::Mizar => write!(f, "text/mizar")?,
            Text::N3 => write!(f, "text/n3")?,
            Text::Parameters => write!(f, "text/parameters")?,
            Text::Parityfec => write!(f, "text/parityfec")?,
            Text::ProvenanceNotation => write!(f, "text/provenance-notation")?,
            Text::PrsFallensteinRst => write!(f, "text/prs.fallenstein.rst")?,
            Text::PrsLinesTag => write!(f, "text/prs.lines.tag")?,
            Text::PrsPropLogic => write!(f, "text/prs.prop.logic")?,
            Text::Raptorfec => write!(f, "text/raptorfec")?,
            Text::Red => write!(f, "text/RED")?,
            Text::Rfc822Headers => write!(f, "text/rfc822-headers")?,
            Text::Rtf => write!(f, "text/rtf")?,
            Text::RtpEncAescm128 => write!(f, "text/rtp-enc-aescm128")?,
            Text::Rtploopback => write!(f, "text/rtploopback")?,
            Text::Rtx => write!(f, "text/rtx")?,
            Text::Sgml => write!(f, "text/SGML")?,
            Text::Shaclc => write!(f, "text/shaclc")?,
            Text::Shex => write!(f, "text/shex")?,
            Text::Spdx => write!(f, "text/spdx")?,
            Text::Strings => write!(f, "text/strings")?,
            Text::T140 => write!(f, "text/t140")?,
            Text::TabSeparatedValues => write!(f, "text/tab-separated-values")?,
            Text::Troff => write!(f, "text/troff")?,
            Text::Turtle => write!(f, "text/turtle")?,
            Text::Ulpfec => write!(f, "text/ulpfec")?,
            Text::UriList => write!(f, "text/uri-list")?,
            Text::Vcard => write!(f, "text/vcard")?,
            Text::VndA => write!(f, "text/vnd.a")?,
            Text::VndAbc => write!(f, "text/vnd.abc")?,
            Text::VndAsciiArt => write!(f, "text/vnd.ascii-art")?,
            Text::VndCurl => write!(f, "text/vnd.curl")?,
            Text::VndDebianCopyright => write!(f, "text/vnd.debian.copyright")?,
            Text::VndDMClientScript => write!(f, "text/vnd.DMClientScript")?,
            Text::VndDvbSubtitle => write!(f, "text/vnd.dvb.subtitle")?,
            Text::VndEsmertecThemeDescriptor => write!(f, "text/vnd.esmertec.theme-descriptor")?,
            Text::VndExchangeable => write!(f, "text/vnd.exchangeable")?,
            Text::VndFamilysearchGedcom => write!(f, "text/vnd.familysearch.gedcom")?,
            Text::VndFiclabFlt => write!(f, "text/vnd.ficlab.flt")?,
            Text::VndFly => write!(f, "text/vnd.fly")?,
            Text::VndFmiFlexstor => write!(f, "text/vnd.fmi.flexstor")?,
            Text::VndGml => write!(f, "text/vnd.gml")?,
            Text::VndGraphviz => write!(f, "text/vnd.graphviz")?,
            Text::VndHans => write!(f, "text/vnd.hans")?,
            Text::VndHgl => write!(f, "text/vnd.hgl")?,
            Text::VndIn3D3Dml => write!(f, "text/vnd.in3d.3dml")?,
            Text::VndIn3DSpot => write!(f, "text/vnd.in3d.spot")?,
            Text::VndIPTCNewsML => write!(f, "text/vnd.IPTC.NewsML")?,
            Text::VndIPTCNITF => write!(f, "text/vnd.IPTC.NITF")?,
            Text::VndLatexZ => write!(f, "text/vnd.latex-z")?,
            Text::VndMotorolaReflex => write!(f, "text/vnd.motorola.reflex")?,
            Text::VndMsMediapackage => write!(f, "text/vnd.ms-mediapackage")?,
            Text::VndNet2PhoneCommcenterCommand => {
                write!(f, "text/vnd.net2phone.commcenter.command")?
            }
            Text::VndRadisysMsmlBasicLayout => write!(f, "text/vnd.radisys.msml-basic-layout")?,
            Text::VndSenxWarpscript => write!(f, "text/vnd.senx.warpscript")?,
            Text::VndSunJ2MeAppDescriptor => write!(f, "text/vnd.sun.j2me.app-descriptor")?,
            Text::VndSosi => write!(f, "text/vnd.sosi")?,
            Text::VndTrolltechLinguist => write!(f, "text/vnd.trolltech.linguist")?,
            Text::VndWapSi => write!(f, "text/vnd.wap.si")?,
            Text::VndWapSl => write!(f, "text/vnd.wap.sl")?,
            Text::VndWapWml => write!(f, "text/vnd.wap.wml")?,
            Text::VndWapWmlscript => write!(f, "text/vnd.wap.wmlscript")?,
            Text::Vtt => write!(f, "text/vtt")?,
            Text::Xml => write!(f, "text/xml")?,
            Text::XmlExternalParsedEntity => write!(f, "text/xml-external-parsed-entity")?,
        }
        Ok(())
    }
}
impl ::std::str::FromStr for Text {
    type Err = ();
    fn from_str(input: &str) -> ::std::result::Result<Self, Self::Err> {
        match input {
            "text/1d-interleaved-parityfec" => Ok(Text::_1DInterleavedParityfec),
            "text/cache-manifest" => Ok(Text::CacheManifest),
            "text/calendar" => Ok(Text::Calendar),
            "text/cql" => Ok(Text::Cql),
            "text/cql-expression" => Ok(Text::CqlExpression),
            "text/cql-identifier" => Ok(Text::CqlIdentifier),
            "text/css" => Ok(Text::Css),
            "text/csv" => Ok(Text::Csv),
            "text/csv-schema" => Ok(Text::CsvSchema),
            "text/dns" => Ok(Text::Dns),
            "text/encaprtp" => Ok(Text::Encaprtp),
            "text/example" => Ok(Text::Example),
            "text/fhirpath" => Ok(Text::Fhirpath),
            "text/flexfec" => Ok(Text::Flexfec),
            "text/fwdred" => Ok(Text::Fwdred),
            "text/gff3" => Ok(Text::Gff3),
            "text/grammar-ref-list" => Ok(Text::GrammarRefList),
            "text/hl7v2" => Ok(Text::Hl7V2),
            "text/html" => Ok(Text::Html),
            "text/javascript" => Ok(Text::Javascript),
            "text/jcr-cnd" => Ok(Text::JcrCnd),
            "text/markdown" => Ok(Text::Markdown),
            "text/mizar" => Ok(Text::Mizar),
            "text/n3" => Ok(Text::N3),
            "text/parameters" => Ok(Text::Parameters),
            "text/parityfec" => Ok(Text::Parityfec),
            "text/provenance-notation" => Ok(Text::ProvenanceNotation),
            "text/prs.fallenstein.rst" => Ok(Text::PrsFallensteinRst),
            "text/prs.lines.tag" => Ok(Text::PrsLinesTag),
            "text/prs.prop.logic" => Ok(Text::PrsPropLogic),
            "text/raptorfec" => Ok(Text::Raptorfec),
            "text/RED" => Ok(Text::Red),
            "text/rfc822-headers" => Ok(Text::Rfc822Headers),
            "text/rtf" => Ok(Text::Rtf),
            "text/rtp-enc-aescm128" => Ok(Text::RtpEncAescm128),
            "text/rtploopback" => Ok(Text::Rtploopback),
            "text/rtx" => Ok(Text::Rtx),
            "text/SGML" => Ok(Text::Sgml),
            "text/shaclc" => Ok(Text::Shaclc),
            "text/shex" => Ok(Text::Shex),
            "text/spdx" => Ok(Text::Spdx),
            "text/strings" => Ok(Text::Strings),
            "text/t140" => Ok(Text::T140),
            "text/tab-separated-values" => Ok(Text::TabSeparatedValues),
            "text/troff" => Ok(Text::Troff),
            "text/turtle" => Ok(Text::Turtle),
            "text/ulpfec" => Ok(Text::Ulpfec),
            "text/uri-list" => Ok(Text::UriList),
            "text/vcard" => Ok(Text::Vcard),
            "text/vnd.a" => Ok(Text::VndA),
            "text/vnd.abc" => Ok(Text::VndAbc),
            "text/vnd.ascii-art" => Ok(Text::VndAsciiArt),
            "text/vnd.curl" => Ok(Text::VndCurl),
            "text/vnd.debian.copyright" => Ok(Text::VndDebianCopyright),
            "text/vnd.DMClientScript" => Ok(Text::VndDMClientScript),
            "text/vnd.dvb.subtitle" => Ok(Text::VndDvbSubtitle),
            "text/vnd.esmertec.theme-descriptor" => Ok(Text::VndEsmertecThemeDescriptor),
            "text/vnd.exchangeable" => Ok(Text::VndExchangeable),
            "text/vnd.familysearch.gedcom" => Ok(Text::VndFamilysearchGedcom),
            "text/vnd.ficlab.flt" => Ok(Text::VndFiclabFlt),
            "text/vnd.fly" => Ok(Text::VndFly),
            "text/vnd.fmi.flexstor" => Ok(Text::VndFmiFlexstor),
            "text/vnd.gml" => Ok(Text::VndGml),
            "text/vnd.graphviz" => Ok(Text::VndGraphviz),
            "text/vnd.hans" => Ok(Text::VndHans),
            "text/vnd.hgl" => Ok(Text::VndHgl),
            "text/vnd.in3d.3dml" => Ok(Text::VndIn3D3Dml),
            "text/vnd.in3d.spot" => Ok(Text::VndIn3DSpot),
            "text/vnd.IPTC.NewsML" => Ok(Text::VndIPTCNewsML),
            "text/vnd.IPTC.NITF" => Ok(Text::VndIPTCNITF),
            "text/vnd.latex-z" => Ok(Text::VndLatexZ),
            "text/vnd.motorola.reflex" => Ok(Text::VndMotorolaReflex),
            "text/vnd.ms-mediapackage" => Ok(Text::VndMsMediapackage),
            "text/vnd.net2phone.commcenter.command" => Ok(Text::VndNet2PhoneCommcenterCommand),
            "text/vnd.radisys.msml-basic-layout" => Ok(Text::VndRadisysMsmlBasicLayout),
            "text/vnd.senx.warpscript" => Ok(Text::VndSenxWarpscript),
            "text/vnd.sun.j2me.app-descriptor" => Ok(Text::VndSunJ2MeAppDescriptor),
            "text/vnd.sosi" => Ok(Text::VndSosi),
            "text/vnd.trolltech.linguist" => Ok(Text::VndTrolltechLinguist),
            "text/vnd.wap.si" => Ok(Text::VndWapSi),
            "text/vnd.wap.sl" => Ok(Text::VndWapSl),
            "text/vnd.wap.wml" => Ok(Text::VndWapWml),
            "text/vnd.wap.wmlscript" => Ok(Text::VndWapWmlscript),
            "text/vtt" => Ok(Text::Vtt),
            "text/xml" => Ok(Text::Xml),
            "text/xml-external-parsed-entity" => Ok(Text::XmlExternalParsedEntity),
            _ => Err(()),
        }
    }
}