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
use super::*;

/// ## The OpenApi [encoding object](https://swagger.io/specification/#encoding-object)
#[derive(
    Debug, PartialEq, Serialize, Deserialize, Clone, Getters, Sparsable, OApiCheck, OApiExt,
)]
#[getset(get = "pub")]
#[serde(rename_all = "camelCase")]
pub struct OApiEncoding {
    /// The content type of the property
    content_type: Option<String>,
    /// Additional information headers
    #[serde(default)]
    headers: HashMap<String, OApiHeader>,
    /// Style of the property value
    style: Option<String>,
    #[serde(default)]
    /// Mark this property as exploded
    explode: bool,
    /// Allow reserved characters in this property
    #[serde(default)]
    allow_reserved: bool,
    /// Extensions, if any
    #[serde(flatten)]
    #[getset(get)]
    _extension: HashMap<String, Value>,
}