http_type/content_type/type.rs
1/// Represents different types of HTTP content types, such as JSON, XML, plain text, HTML,
2/// form URL encoded, and an unknown type.
3#[derive(Debug, Clone, PartialEq, Eq)]
4pub enum ContentType {
5 /// Represents the `application/json` content type.
6 ApplicationJson,
7
8 /// Represents the `application/xml` content type.
9 ApplicationXml,
10
11 /// Represents the `text/plain` content type.
12 TextPlain,
13
14 /// Represents the `text/html` content type.
15 TextHtml,
16
17 /// Represents the `application/x-www-form-urlencoded` content type.
18 FormUrlEncoded,
19
20 /// Represents an unknown or unrecognized content type.
21 Unknown,
22}