pub struct Header {Show 13 fields
pub reference: Option<String>,
pub summary: Option<String>,
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<Schema>,
pub example: Option<Value>,
pub examples: Option<BTreeMap<String, Example>>,
pub content: Option<BTreeMap<String, MediaType>>,
}Expand description
HTTP header definition.
Fields§
§reference: Option<String>Reference to a header definition.
summary: Option<String>Short summary of the header.
description: Option<String>Description of the header. CommonMark syntax may be used.
required: Option<bool>Whether the header is required (default: false).
deprecated: Option<bool>Whether the header is deprecated (default: false).
allow_empty_value: Option<bool>Whether empty values are allowed (default: false).
style: Option<String>Serialization style for the header value.
explode: Option<bool>Whether to generate separate parameters for array/object values.
allow_reserved: Option<bool>Whether to allow reserved characters.
schema: Option<Schema>Schema defining the header type.
example: Option<Value>Example value for the header.
examples: Option<BTreeMap<String, Example>>Multiple examples for the header.
content: Option<BTreeMap<String, MediaType>>Content representation for the header.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Header
impl<'de> Deserialize<'de> for Header
Source§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 Freeze for Header
impl RefUnwindSafe for Header
impl Send for Header
impl Sync for Header
impl Unpin for Header
impl UnsafeUnpin for Header
impl UnwindSafe for Header
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more