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 /// Represents the `application/xml` content type.
8 ApplicationXml,
9 /// Represents the `text/plain` content type.
10 TextPlain,
11 /// Represents the `text/html` content type.
12 TextHtml,
13 /// Represents the `application/x-www-form-urlencoded` content type.
14 FormUrlEncoded,
15 /// Represents an unknown or unrecognized content type.
16 Unknown,
17}