pub struct Header {
pub description: Option<String>,
pub required: Option<bool>,
pub deprecated: Option<bool>,
pub allow_empty_value: Option<bool>,
pub style: Option<String>,
pub explode: Option<bool>,
pub allow_reserved: Option<bool>,
pub schema: Option<RefOrObject<Schema>>,
pub example: Option<Value>,
pub examples: Option<BTreeMap<String, RefOrObject<Example>>>,
pub content: Option<BTreeMap<String, Media>>,
pub extensions: Extensions,
}
Expand description
§Header
The Header Object follows the structure of the Parameter Object with the following changes see https://swagger.io/specification/v3/#header-object
Fields§
§description: Option<String>
A brief description of the parameter.
required: Option<bool>
Determines whether this parameter is mandatory.
deprecated: Option<bool>
Specifies that a parameter is deprecated and SHOULD be transitioned out of usage.
allow_empty_value: Option<bool>
Sets the ability to pass empty-valued parameters.
style: Option<String>
Describes how the parameter value will be serialized depending on the type of the parameter value.
explode: Option<bool>
When this is true, parameter values of type array or object generate separate parameters for each value of the array or key-value pair of the map.
allow_reserved: Option<bool>
Determines whether the parameter value SHOULD allow reserved characters
schema: Option<RefOrObject<Schema>>
The schema defining the type used for the parameter.
example: Option<Value>
Example of the parameter’s potential value.
examples: Option<BTreeMap<String, RefOrObject<Example>>>
Examples of the parameter’s potential value.
content: Option<BTreeMap<String, Media>>
A map containing the representations for the parameter.
extensions: Extensions