pub struct Header {Show 13 fields
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 content: Option<BTreeMap<String, MediaType>>,
pub example: Option<Value>,
pub examples: Option<Value>,
pub reference: Option<String>,
pub extensions: Extensions,
}Expand description
OpenAPI Header Object (H5). Structurally a Parameter minus the name
and in fields. Used in Response.headers, Encoding.headers, and
Components.headers.
Fields§
§description: Option<String>§required: Option<bool>§deprecated: Option<bool>§allow_empty_value: Option<bool>§style: Option<String>§explode: Option<bool>§allow_reserved: Option<bool>§schema: Option<Schema>§content: Option<BTreeMap<String, MediaType>>§example: Option<Value>§examples: Option<Value>§reference: Option<String>§extensions: ExtensionsTrait 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