Struct rweb_openapi::v3_0::Header [−][src]
pub struct Header { pub required: Option<bool>, pub schema: Option<ComponentOrInlineSchema>, pub unique_items: Option<bool>, pub param_type: Option<Type>, pub format: Str, pub description: Str, }
Expand description
The Header Object follows the structure of the Parameter Object with the following changes:
name
MUST NOT be specified, it is given in the correspondingheaders
map.in
MUST NOT be specified, it is implicitly inheader
.- All traits that are affected by the location MUST be applicable to a location of
header
(for example,style
).
See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.1.md#headerObject.
Fields
required: Option<bool>
schema: Option<ComponentOrInlineSchema>
unique_items: Option<bool>
param_type: Option<Type>
string, number, boolean, integer, array, file ( only for formData )
format: Str
description: Str
A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed.
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for Header
impl UnwindSafe for Header
Blanket Implementations
Mutably borrows from an owned value. Read more